protocol_select

package
v0.0.0-...-34879f3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderSizeUint uint32 = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type Byte

type Byte [1]byte

Byte is the primitive type

func ByteDefault

func ByteDefault() Byte

func ByteFromSlice

func ByteFromSlice(slice []byte, _compatible bool) (*Byte, error)

func ByteFromSliceUnchecked

func ByteFromSliceUnchecked(slice []byte) *Byte

func NewByte

func NewByte(b byte) Byte

func (*Byte) AsSlice

func (b *Byte) AsSlice() []byte

type Number

type Number uint32

type ProtocolInfoMol

type ProtocolInfoMol struct {
	// contains filtered or unexported fields
}

func ProtocolInfoMolDefault

func ProtocolInfoMolDefault() ProtocolInfoMol

func ProtocolInfoMolFromSlice

func ProtocolInfoMolFromSlice(slice []byte, compatible bool) (*ProtocolInfoMol, error)

func ProtocolInfoMolFromSliceUnchecked

func ProtocolInfoMolFromSliceUnchecked(slice []byte) *ProtocolInfoMol

func (*ProtocolInfoMol) AsBuilder

func (s *ProtocolInfoMol) AsBuilder() ProtocolInfoMolBuilder

func (*ProtocolInfoMol) AsSlice

func (s *ProtocolInfoMol) AsSlice() []byte

func (*ProtocolInfoMol) CountExtraFields

func (s *ProtocolInfoMol) CountExtraFields() uint

func (*ProtocolInfoMol) FieldCount

func (s *ProtocolInfoMol) FieldCount() uint

func (*ProtocolInfoMol) HasExtraFields

func (s *ProtocolInfoMol) HasExtraFields() bool

func (*ProtocolInfoMol) IsEmpty

func (s *ProtocolInfoMol) IsEmpty() bool

func (*ProtocolInfoMol) Len

func (s *ProtocolInfoMol) Len() uint

func (*ProtocolInfoMol) Name

func (s *ProtocolInfoMol) Name() *String

func (*ProtocolInfoMol) SupportVersions

func (s *ProtocolInfoMol) SupportVersions() *StringVec

func (*ProtocolInfoMol) TotalSize

func (s *ProtocolInfoMol) TotalSize() uint

type ProtocolInfoMolBuilder

type ProtocolInfoMolBuilder struct {
	// contains filtered or unexported fields
}

func NewProtocolInfoMolBuilder

func NewProtocolInfoMolBuilder() *ProtocolInfoMolBuilder

func (*ProtocolInfoMolBuilder) Build

func (*ProtocolInfoMolBuilder) Name

func (*ProtocolInfoMolBuilder) SupportVersions

type String

type String struct {
	// contains filtered or unexported fields
}

func StringDefault

func StringDefault() String

func StringFromSlice

func StringFromSlice(slice []byte, _compatible bool) (*String, error)

func StringFromSliceUnchecked

func StringFromSliceUnchecked(slice []byte) *String

func (*String) AsBuilder

func (s *String) AsBuilder() StringBuilder

func (*String) AsSlice

func (s *String) AsSlice() []byte

func (*String) Get

func (s *String) Get(index uint) *Byte

if *Byte is nil, index is out of bounds

func (*String) IsEmpty

func (s *String) IsEmpty() bool

func (*String) ItemCount

func (s *String) ItemCount() uint

func (*String) Len

func (s *String) Len() uint

func (*String) RawData

func (s *String) RawData() []byte

func (*String) TotalSize

func (s *String) TotalSize() uint

type StringBuilder

type StringBuilder struct {
	// contains filtered or unexported fields
}

func NewStringBuilder

func NewStringBuilder() *StringBuilder

func (*StringBuilder) Build

func (s *StringBuilder) Build() String

func (*StringBuilder) Extend

func (s *StringBuilder) Extend(iter []Byte) *StringBuilder

func (*StringBuilder) Push

func (s *StringBuilder) Push(v Byte) *StringBuilder

func (*StringBuilder) Replace

func (s *StringBuilder) Replace(index uint, v Byte) *Byte

func (*StringBuilder) Set

func (s *StringBuilder) Set(v []Byte) *StringBuilder

type StringVec

type StringVec struct {
	// contains filtered or unexported fields
}

func StringVecDefault

func StringVecDefault() StringVec

func StringVecFromSlice

func StringVecFromSlice(slice []byte, compatible bool) (*StringVec, error)

func StringVecFromSliceUnchecked

func StringVecFromSliceUnchecked(slice []byte) *StringVec

func (*StringVec) AsBuilder

func (s *StringVec) AsBuilder() StringVecBuilder

func (*StringVec) AsSlice

func (s *StringVec) AsSlice() []byte

func (*StringVec) Get

func (s *StringVec) Get(index uint) *String

if *String is nil, index is out of bounds

func (*StringVec) IsEmpty

func (s *StringVec) IsEmpty() bool

func (*StringVec) ItemCount

func (s *StringVec) ItemCount() uint

func (*StringVec) Len

func (s *StringVec) Len() uint

func (*StringVec) TotalSize

func (s *StringVec) TotalSize() uint

type StringVecBuilder

type StringVecBuilder struct {
	// contains filtered or unexported fields
}

func NewStringVecBuilder

func NewStringVecBuilder() *StringVecBuilder

func (*StringVecBuilder) Build

func (s *StringVecBuilder) Build() StringVec

func (*StringVecBuilder) Extend

func (s *StringVecBuilder) Extend(iter []String) *StringVecBuilder

func (*StringVecBuilder) Push

func (*StringVecBuilder) Replace

func (s *StringVecBuilder) Replace(index uint, v String) *String

func (*StringVecBuilder) Set

Jump to

Keyboard shortcuts

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