efireader

package
v0.0.0-...-caef65d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASCIIZBytesToString

func ASCIIZBytesToString(b []byte) (s string)

ASCIIZBytesToString decodes a null byte terminated ascii byte sequence to a string.

func ReadASCIINullBytes

func ReadASCIINullBytes(r io.Reader) (out []byte, err error)

func ReadFields

func ReadFields(r io.Reader, fields ...any) (n int64, err error)

func ReadUTF16NullBytes

func ReadUTF16NullBytes(r io.Reader) (out []byte, err error)

func UTF16BytesToString

func UTF16BytesToString(b []byte) string

UTF16BytesToString decodes an unterminated UTF-16 byte sequence to a string.

func UTF16ZBytesToString

func UTF16ZBytesToString(b []byte) (s string)

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) Read

func (r *FieldReader) Read(p []byte) (n int, err error)

func (*FieldReader) ReadFields

func (r *FieldReader) ReadFields(fields ...any) (err error)

Jump to

Keyboard shortcuts

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