Documentation ¶
Index ¶
- type DecodeOptions
- type Reader
- func (r *Reader) Decode(v interface{}) error
- func (r *Reader) Len() int64
- func (r *Reader) Next(n int) ([]byte, error)
- func (r *Reader) Read(b []byte) (int, error)
- func (r *Reader) ReadBool() (bool, error)
- func (r *Reader) ReadElement() (id uint32, elem *Reader, err error)
- func (r *Reader) ReadFloat() (float64, error)
- func (r *Reader) ReadInt() (int64, error)
- func (r *Reader) ReadString() (string, error)
- func (r *Reader) ReadTime() (time.Time, error)
- func (r *Reader) ReadVInt() (int64, error)
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeOptions ¶
type Reader ¶
type Reader struct { Dec *decoderState // contains filtered or unexported fields }
func NewReaderBytes ¶
func NewReaderBytes(b []byte, opt *DecodeOptions) *Reader
func (*Reader) Decode ¶
Decode reads the next EBML-encoded value from its input and stores it in the value pointed to by v.
func (*Reader) Len ¶
Len returns remaining bytes length of the Element. Returns -1 if length is not known.
func (*Reader) ReadElement ¶
ReadElement reads the next EMBL-encoded element ID and size
func (*Reader) ReadString ¶
ReadString reads and returns a UTF-8 encoded EBML string value.
type Unmarshaler ¶
Unmarshaler is the interface implemented by objects that can unmarshal a EBML description of themselves. UnmarshalEBML must copy the EBML data if it wishes to retain the data after returning.
Click to show internal directories.
Click to hide internal directories.