buffer

package
v1.2.119 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 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 struct {
	bytes.Buffer
}

func New

func New() *Buffer

func (*Buffer) AppendJSONMarshal

func (b *Buffer) AppendJSONMarshal(v any) error

AppendJSONMarshal writes string represents v to the buffer.

func (*Buffer) Free

func (b *Buffer) Free()

func (*Buffer) WritePosInt

func (b *Buffer) WritePosInt(i int)

func (*Buffer) WritePosIntWidth

func (b *Buffer) WritePosIntWidth(i, width int)

WritePosIntWidth writes non-negative integer i to the buffer, padded on the left by zeroes to the given width. Use a width of 0 to omit padding.

Jump to

Keyboard shortcuts

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