bytebuffer

package
v3.11.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteBuffer

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

ByteBuffer is a wrapper around a slice to reduce memory allocation while handling blob of data.

func New

func New() *ByteBuffer

New creates a new ByteBuffer instance.

func (*ByteBuffer) Bytes

func (buffer *ByteBuffer) Bytes() []byte

Bytes returns the content buffer.

func (*ByteBuffer) Close

func (buffer *ByteBuffer) Close()

Close recycles underlying resources of encoder.

func (*ByteBuffer) Concat

func (buffer *ByteBuffer) Concat(args ...string)

Concat appends given arguments to blob content

func (*ByteBuffer) String

func (buffer *ByteBuffer) String() string

String returns the content buffer.

Jump to

Keyboard shortcuts

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