Documentation ¶
Index ¶
- func ReadBytes[T ~[]byte](r io.Reader, b *T) error
- func ReadInt16[T ~int16](r io.Reader, i *T) error
- func ReadInt32[T ~int32](r io.Reader, i *T) error
- func ReadInt64[T ~int64](r io.Reader, i *T) error
- func ReadInt8[T ~int8](r io.Reader, i *T) error
- func ReadMap[KT comparable, K ComparableReader[KT], VT any, V Reader[VT]](r io.Reader, mp *map[KT]VT) error
- func ReadSlice[TV any, T Reader[TV]](r io.Reader, s *[]T) error
- func ReadSmallBytes[T ~[]byte](r io.Reader, b *T) error
- func ReadSmallString[T ~string](r io.Reader, s *T) error
- func ReadStaticBytes[T ~[]byte](r io.Reader, b T) error
- func ReadString[T ~string](r io.Reader, s *T) error
- func ReadTime(r io.Reader, t *time.Time) error
- func ReadTinyBytes[T ~[]byte](r io.Reader, b *T) error
- func ReadTinyString[T ~string](r io.Reader, s *T) error
- func ReadUInt16[T ~uint16](r io.Reader, i *T) error
- func ReadUInt32[T ~uint32](r io.Reader, i *T) error
- func ReadUInt64[T ~uint64](r io.Reader, i *T) error
- func ReadUInt8[T ~uint8](r io.Reader, i *T) error
- func WriteBytes(w io.Writer, b []byte) error
- func WriteInt16[T ~int16](w io.Writer, i T) error
- func WriteInt32[T ~int32](w io.Writer, i T) error
- func WriteInt64[T ~int64](w io.Writer, i T) error
- func WriteInt8[T ~int8](w io.Writer, i T) error
- func WriteMap[K ComparableWriter, T Writer](w io.Writer, m map[K]T) error
- func WriteSlice[T Writer, TI ~[]T](w io.Writer, s TI) error
- func WriteSmallBytes(w io.Writer, b []byte) error
- func WriteSmallString[T ~string](w io.Writer, s T) error
- func WriteStaticBytes(w io.Writer, b []byte) error
- func WriteString[T ~string](w io.Writer, s T) error
- func WriteTime(w io.Writer, t time.Time) error
- func WriteTinyBytes(w io.Writer, b []byte) error
- func WriteTinyString[T ~string](w io.Writer, s T) error
- func WriteUInt16[T ~uint16](w io.Writer, i T) error
- func WriteUInt32[T ~uint32](w io.Writer, i T) error
- func WriteUInt64[T ~uint64](w io.Writer, i T) error
- func WriteUInt8[T ~uint8](w io.Writer, i T) error
- type Bytes
- type ComparableReadWriter
- type ComparableReader
- type ComparableWriter
- type ReadWriter
- type Reader
- type SmallBytes
- type SmallString
- type String
- type Time
- type TinyBytes
- type TinyString
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMap ¶
func ReadMap[KT comparable, K ComparableReader[KT], VT any, V Reader[VT]]( r io.Reader, mp *map[KT]VT, ) error
Types ¶
type ComparableReadWriter ¶ added in v0.7.7
type ComparableReadWriter[T any] interface { ComparableReader[T] ComparableWriter }
type ComparableReader ¶
type ComparableReader[T any] interface { comparable Reader[T] }
type ComparableWriter ¶
type ComparableWriter interface { comparable Writer }
type ReadWriter ¶
type SmallBytes ¶
type SmallBytes []byte
func (SmallBytes) Bytes ¶ added in v0.7.7
func (b SmallBytes) Bytes() []byte
func (SmallBytes) WriteBytes ¶
func (b SmallBytes) WriteBytes(w io.Writer) error
type SmallString ¶
type SmallString string
func (SmallString) WriteBytes ¶
func (s SmallString) WriteBytes(w io.Writer) error
type TinyString ¶
type TinyString string
func (TinyString) WriteBytes ¶
func (s TinyString) WriteBytes(w io.Writer) error
Click to show internal directories.
Click to hide internal directories.