buffer

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Buffer-like byte slice

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) AppendGeneric

func (b *Buffer) AppendGeneric(data interface{})

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