Documentation
¶
Index ¶
- Variables
- func ByteArrayToInt16(arr [2]byte) int16
- func ByteArrayToInt32(arr [4]byte) int32
- func ByteArrayToInt64(arr [8]byte) int64
- func ByteArrayToUInt16(arr [2]byte) uint16
- func ErrExhaustedFuncSetStringersGetString(in error) (ok bool, v string)
- func ErrExhaustedFuncSetStringersWithDelim(in error, delim byte) (out error)
- func Int16ToByteArray(i int16) [2]byte
- func Int32ToByteArray(i int32) [4]byte
- func Int64ToByteArray(i int64) [8]byte
- func IsErrExhaustedFuncSetStringers(err error) bool
- func MakeLineReaderIgnoreErrors(in interfaces.FuncSetString) interfaces.FuncSetString
- func MakeLineReaderIterate(rffs ...interfaces.FuncSetString) interfaces.FuncSetString
- func MakeLineReaderIterateStrict(rffs ...interfaces.FuncSetString) interfaces.FuncSetString
- func MakeLineReaderKeyValues(dict map[string]interfaces.FuncSetString) interfaces.FuncSetString
- func MakeLineReaderRepeat(in interfaces.FuncSetString) interfaces.FuncSetString
- func ReadAllOrDieTrying(r io.Reader, b []byte) (n int, err error)
- func ReadFixedInt32(r io.Reader) (n int, val int32, err error)
- func ReadFixedInt64(r io.Reader) (n int, val int64, err error)
- func ReadFixedUInt16(r io.Reader) (n int, val uint16, err error)
- func ReadFixedUint8(r io.Reader) (n uint8, read int, err error)
- func ReadInt64(r io.Reader) (n int64, read int, err error)
- func ReadInt8(r io.Reader) (n int8, read int, err error)
- func ReadUint16(r io.ByteReader) (v uint16, n int64, err error)
- func ReadUint8(r io.Reader) (n uint8, read int, err error)
- func UInt16ToByteArray(i uint16) [2]byte
- func WriteAllOrDieTrying(w io.Writer, b []byte) (n int, err error)
- func WriteFixedInt32(w io.Writer, n int32) (written int, err error)
- func WriteFixedInt64(w io.Writer, n int64) (written int, err error)
- func WriteFixedUInt16(w io.Writer, n uint16) (written int, err error)
- func WriteInt64(w io.Writer, n int64) (written int, err error)
- func WriteInt8(w io.Writer, n int8) (written int, err error)
- func WriteKeySpaceValueNewline(w io.Writer, key string, value []byte) (n int64, err error)
- func WriteKeySpaceValueNewlineString(w io.Writer, key, value string) (n int, err error)
- func WriteLine(w io.Writer, s string) (n int64, err error)
- func WriteSeq[T any](w1 io.Writer, e T, seq ...interfaces.FuncWriterElementInterface[T]) (n int64, err error)
- func WriteStrings(w io.Writer, ss ...string) (n int, err error)
- func WriteUint16(w io.Writer, n uint16) (written int, err error)
- func WriteUint32(w io.Writer, n uint32) (written int, err error)
- func WriteUint8(w io.Writer, n uint8) (written int, err error)
- type BinaryField
- func (bf *BinaryField) GetContentLength() (contentLength int, contentLength64 int64, err error)
- func (bf *BinaryField) ReadFrom(r io.Reader) (n int64, err error)
- func (bf *BinaryField) Reset()
- func (bf *BinaryField) SetContentLength(v int)
- func (bf *BinaryField) String() string
- func (bf *BinaryField) WriteTo(w io.Writer) (n int64, err error)
- type ErrExhaustedFuncSetStringersLine
- type PipedReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBoundaryNotFound = errors.New("boundary not found") ErrExpectedContentRead = errors.New("expected content read") ErrExpectedBoundaryRead = errors.New("expected boundary read") ErrReadFromSmallOverflow = errors.New( "reader provided more bytes than max int", ) ErrInvalidBoundaryReaderState = errors.New("invalid boundary reader state") )
Functions ¶
func ByteArrayToInt16 ¶
func ByteArrayToInt32 ¶
func ByteArrayToInt64 ¶
func ByteArrayToUInt16 ¶
func Int16ToByteArray ¶
func Int32ToByteArray ¶
func Int64ToByteArray ¶
func MakeLineReaderIgnoreErrors ¶
func MakeLineReaderIgnoreErrors( in interfaces.FuncSetString, ) interfaces.FuncSetString
func MakeLineReaderIterate ¶
func MakeLineReaderIterate( rffs ...interfaces.FuncSetString, ) interfaces.FuncSetString
func MakeLineReaderIterateStrict ¶
func MakeLineReaderIterateStrict( rffs ...interfaces.FuncSetString, ) interfaces.FuncSetString
func MakeLineReaderKeyValues ¶
func MakeLineReaderKeyValues( dict map[string]interfaces.FuncSetString, ) interfaces.FuncSetString
func MakeLineReaderRepeat ¶
func MakeLineReaderRepeat( in interfaces.FuncSetString, ) interfaces.FuncSetString
func ReadUint16 ¶
func ReadUint16(r io.ByteReader) (v uint16, n int64, err error)
func UInt16ToByteArray ¶
func WriteSeq ¶
func WriteSeq[T any]( w1 io.Writer, e T, seq ...interfaces.FuncWriterElementInterface[T], ) (n int64, err error)
Types ¶
type BinaryField ¶
func (*BinaryField) GetContentLength ¶
func (bf *BinaryField) GetContentLength() (contentLength int, contentLength64 int64, err error)
func (*BinaryField) Reset ¶
func (bf *BinaryField) Reset()
func (*BinaryField) SetContentLength ¶
func (bf *BinaryField) SetContentLength(v int)
func (*BinaryField) String ¶
func (bf *BinaryField) String() string
type ErrExhaustedFuncSetStringersLine ¶
type ErrExhaustedFuncSetStringersLine struct {
// contains filtered or unexported fields
}
func (ErrExhaustedFuncSetStringersLine) Error ¶
func (e ErrExhaustedFuncSetStringersLine) Error() string
func (ErrExhaustedFuncSetStringersLine) Is ¶
func (e ErrExhaustedFuncSetStringersLine) Is(target error) (ok bool)
type PipedReader ¶
func MakePipedDecoder ¶
func MakePipedDecoder[O any]( object O, decoder interfaces.DecoderFrom[O], ) PipedReader
func MakePipedReaderFrom ¶
func MakePipedReaderFrom(r io.ReaderFrom) PipedReader
Click to show internal directories.
Click to hide internal directories.