buffer

package
v0.0.0-...-7873af1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer []byte

Buffer type wrap up byte slice built-in type

func (*Buffer) Append

func (b *Buffer) Append(data []byte)

Append byte slice to buffer

func (*Buffer) AppendByte

func (b *Buffer) AppendByte(data byte)

AppendByte to buffer

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(val int, width int)

AppendInt to buffer

func (Buffer) Bytes

func (b Buffer) Bytes() []byte

Bytes return underlying slice data

func (*Buffer) Reset

func (b *Buffer) Reset()

Reset buffer position to start

Jump to

Keyboard shortcuts

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