Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostByteOrder ¶
Types ¶
type INetParser ¶
type INetParser interface { WriteBuffer(payload []byte) error ReadBuffer(payload []byte) (int, error) Close() error }
func NewNetNative ¶
func NewNetNativeFd ¶ added in v1.0.1
func NewNetNativeFd(writeFd, readFd int, nativeEndian binary.ByteOrder) (INetParser, error)
func NewNetStrings ¶
func NewNetStrings(w io.Writer, r io.Reader) INetParser
func NewNetStringsFd ¶ added in v1.0.1
func NewNetStringsFd(writeFd, readFd int) (INetParser, error)
type NetNative ¶
type NetNative struct {
// contains filtered or unexported fields
}
func (NetNative) WriteBuffer ¶
type NetStrings ¶
type NetStrings struct {
// contains filtered or unexported fields
}
func (*NetStrings) Close ¶ added in v1.0.1
func (c *NetStrings) Close() error
func (NetStrings) ReadBuffer ¶
func (c NetStrings) ReadBuffer(payload []byte) (int, error)
func (NetStrings) WriteBuffer ¶
func (c NetStrings) WriteBuffer(payload []byte) error
Click to show internal directories.
Click to hide internal directories.