Documentation
¶
Index ¶
Constants ¶
View Source
const PING_PACKET byte = 69
View Source
const PONG_PACKET byte = 252
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStream ¶
type DataStream struct {
Data []byte
Length uint
Finished bool
// contains filtered or unexported fields
}
func NewDataStream ¶
func NewDataStream(data []byte, len uint) *DataStream
func (*DataStream) ReadByte ¶
func (s *DataStream) ReadByte() (byte, error)
Click to show internal directories.
Click to hide internal directories.