Documentation
¶
Index ¶
- func ASCIIZBytesToString(b []byte) (s string)
- func ReadASCIINullBytes(r io.Reader) (out []byte, err error)
- func ReadFields(r io.Reader, fields ...any) (n int64, err error)
- func ReadUTF16NullBytes(r io.Reader) (out []byte, err error)
- func UTF16BytesToString(b []byte) string
- func UTF16ZBytesToString(b []byte) (s string)
- type FieldReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIZBytesToString ¶ added in v0.6.0
ASCIIZBytesToString decodes a null byte terminated ascii byte sequence to a string.
func UTF16BytesToString ¶
UTF16BytesToString decodes an unterminated UTF-16 byte sequence to a string.
func UTF16ZBytesToString ¶ added in v0.6.0
UTF16ZBytesToString decodes a null byte terminated UTF-16 byte sequence to a string.
Types ¶
type FieldReader ¶
type FieldReader struct {
// contains filtered or unexported fields
}
func NewFieldReader ¶
func NewFieldReader(reader io.Reader, offset *int64) *FieldReader
func (*FieldReader) Offset ¶
func (r *FieldReader) Offset() int64
func (*FieldReader) ReadFields ¶
func (r *FieldReader) ReadFields(fields ...any) (err error)
Click to show internal directories.
Click to hide internal directories.