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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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