zbuffer

package
v0.0.0-...-a0ddb2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CellPool = sync.Pool{
	New: func() interface{} { return new(ZCell) },
}

Functions

func Bench

func Bench()

func Commaize

func Commaize(n int64) string

Format number to string

func ExampleSimple

func ExampleSimple()

Types

type Count32

type Count32 int32

Count32 fast count - fast get

func Count32Create

func Count32Create() *Count32

func (*Count32) Get

func (c *Count32) Get() int32

func (*Count32) Inc

func (c *Count32) Inc() int32

func (*Count32) IncMax

func (c *Count32) IncMax(i int32) int32

func (*Count32) IncMaxInt

func (c *Count32) IncMaxInt(i int32) int

type ZBuffer

type ZBuffer struct {
	// contains filtered or unexported fields
}

func ZBufferCreate

func ZBufferCreate(handle func(data []byte)) *ZBuffer

func (*ZBuffer) FlushCell

func (s *ZBuffer) FlushCell(pCell *ZCell)

func (*ZBuffer) Handle

func (s *ZBuffer) Handle(data []byte)

func (*ZBuffer) Write

func (s *ZBuffer) Write(data []byte)

type ZCell

type ZCell struct {
	// contains filtered or unexported fields
}

func ZCellCreateMulti

func ZCellCreateMulti(size int) (result []*ZCell)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL