MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / NewEmptyBuffer

Function NewEmptyBuffer

projects/Go/proto/fbe/Buffer.go:23–25  ·  view source on GitHub ↗

Create an empty buffer

()

Source from the content-addressed store, hash-verified

21
22// Create an empty buffer
23func NewEmptyBuffer() *Buffer {
24 return &Buffer{data: make([]byte, 0)}
25}
26
27// Create an empty buffer with the given capacity
28func NewCapacityBuffer(capacity int) *Buffer {

Callers 3

NewAttachedFunction · 0.85
NewAttachedBytesFunction · 0.85
NewAttachedBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected