Documentation ¶
Index ¶
- type Reader
- func (stream *Reader) ReadBytes(numBytes uint64) ([]byte, error)
- func (stream *Reader) ReadString() (string, error)
- func (stream *Reader) ReadStruct(data interface{}) error
- func (stream *Reader) ReadUInt32() (uint32, error)
- func (stream *Reader) ReadUInt64() (uint64, error)
- func (stream *Reader) ReadUInt8() (uint8, error)
- type Writer
- func (stream *Writer) Flush() error
- func (stream *Writer) Write(p []byte) (n int, err error)
- func (stream *Writer) WriteBytes(bytes []byte) error
- func (stream *Writer) WriteString(str string) error
- func (stream *Writer) WriteStruct(data interface{}) error
- func (stream *Writer) WriteUInt32(num uint32) error
- func (stream *Writer) WriteUInt64(num uint64) error
- func (stream *Writer) WriteUInt8(num uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader , The :D
func (*Reader) ReadBytes ¶
ReadBytes Reads at maximum the given number of bytes from the stream and returns them
func (*Reader) ReadString ¶
ReadString Reads a string from the stream
func (*Reader) ReadStruct ¶
ReadStruct reads the struct!
func (*Reader) ReadUInt32 ¶
ReadUInt32 Reads the int from the stream
func (*Reader) ReadUInt64 ¶
ReadUInt64 Reads the int from the stream
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer The Writer :D
func (*Writer) WriteBytes ¶
WriteBytes Writes the given slice of bytes into the stream
func (*Writer) WriteString ¶
WriteString Writes the string into the stream
func (*Writer) WriteStruct ¶
WriteStruct writes the struct!
func (*Writer) WriteUInt32 ¶
WriteUInt32 Writes an unsigned thirtytwo bit integer into the stream
func (*Writer) WriteUInt64 ¶
WriteUInt64 Writes an unsigned sixtyfour bit integer into the stream
func (*Writer) WriteUInt8 ¶
WriteUInt8 Writes an unsigned eight bit integer into the stream
Click to show internal directories.
Click to hide internal directories.