Documentation
¶
Index ¶
- Variables
- func Read2[T1 any, T2 any](r io.Reader, t1t Type[T1], t2t Type[T2]) (t1 T1, t2 T2, err error)
- func Read3[T1 any, T2 any, T3 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3]) (t1 T1, t2 T2, t3 T3, err error)
- func Read4[T1 any, T2 any, T3 any, T4 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4]) (t1 T1, t2 T2, t3 T3, t4 T4, err error)
- func Read5[T1 any, T2 any, T3 any, T4 any, T5 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, err error)
- func Read6[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, err error)
- func Read7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, t7 T7, err error)
- func Read8[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, t7 T7, t8 T8, err error)
- func Read9[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, t7 T7, t8 T8, t9 T9, err error)
- func Read10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, ...](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], ...) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, t7 T7, t8 T8, t9 T9, t10 T10, ...)
- func ReadList[T any](r io.Reader, f func() (T, error)) (result []T, err error)
- func Write2[T1 any, T2 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2) (err error)
- func Write3[T1 any, T2 any, T3 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3) (err error)
- func Write4[T1 any, T2 any, T3 any, T4 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write5[T1 any, T2 any, T3 any, T4 any, T5 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write6[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write8[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write9[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func Write10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, ...](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, ...) (err error)
- func WriteList[T any](w io.Writer, list []T, f func(t T) error) (err error)
- type Buffer
- func (b *Buffer) AllocRemainder() []byte
- func (b *Buffer) AllocRemainderTo(other *bytebufferpool.ByteBuffer)
- func (b *Buffer) Limit(limit int)
- func (b *Buffer) Mark() int
- func (b *Buffer) Read(p []byte) (n int, err error)
- func (b *Buffer) Remaining() int
- func (b *Buffer) RemainingSlice() []byte
- func (b *Buffer) Reset(mark int)
- func (b *Buffer) ShrinkRemaining()
- type Enum
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBufferOverflow = io.ErrShortBuffer
Functions ¶
func Read10 ¶
func Read10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, T10 any](r io.Reader, t1t Type[T1], t2t Type[T2], t3t Type[T3], t4t Type[T4], t5t Type[T5], t6t Type[T6], t7t Type[T7], t8t Type[T8], t9t Type[T9], t10t Type[T10]) (t1 T1, t2 T2, t3 T3, t4 T4, t5 T5, t6 T6, t7 T7, t8 T8, t9 T9, t10 T10, err error)
func Write10 ¶
func Write10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, T10 any](w io.Writer, t1t Type[T1], t1 T1, t2t Type[T2], t2 T2, t3t Type[T3], t3 T3, t4t Type[T4], t4 T4, t5t Type[T5], t5 T5, t6t Type[T6], t6 T6, t7t Type[T7], t7 T7, t8t Type[T8], t8 T8, t9t Type[T9], t9 T9, t10t Type[T10], t10 T10) (err error)
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) AllocRemainder ¶
func (*Buffer) AllocRemainderTo ¶
func (b *Buffer) AllocRemainderTo(other *bytebufferpool.ByteBuffer)
func (*Buffer) RemainingSlice ¶
func (*Buffer) ShrinkRemaining ¶
func (b *Buffer) ShrinkRemaining()
type Enum ¶
type Enum[T interface {
constraints.Integer
Validate() bool
}] struct{}
type Type ¶
var ( Byte Type[byte] = byteType{} Bool Type[bool] = boolType{} Uint16 Type[uint16] = uShortType{} VarInt Type[int32] = varIntType{} Long Type[int64] = longType{} UUID Type[uuid.UUID] = uuidType{} String Type[string] = stringType{} ByteArray Type[[]byte] = byteArrayType{} RawBytes Type[[]byte] = rawBytesType{} TextComponent Type[text.Component] = textComponentType{} TextComponentJSON Type[text.Component] = textComponentJSONType{} )
func Opt ¶
func Opt[T comparable](t Type[T]) Type[T]
Click to show internal directories.
Click to hide internal directories.