common

package
v0.0.0-...-5cbd7ab Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutBuffer

func PutBuffer(buf *Buffer)

Types

type Buffer

type Buffer struct {
	Data []byte
	B1   []byte
	B2   []byte
	B4   []byte
	B8   []byte
	B16  []byte
	// contains filtered or unexported fields
}

func GetBuffer

func GetBuffer() *Buffer

func (*Buffer) Flush

func (b *Buffer) Flush(w io.Writer) error

func (*Buffer) Write

func (b *Buffer) Write(w io.Writer, vs ...byte) error

type Common

type Common struct {
}

Common is used encoding/decoding

func (*Common) CheckField

func (c *Common) CheckField(field reflect.StructField) (bool, string)

CheckField returns flag whether should encode/decode or not and field name

Jump to

Keyboard shortcuts

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