Documentation ¶
Overview ¶
Package xdr implements an XDR (RFC 4506) encoder/decoder.
Index ¶
- Variables
- type Reader
- func (r *Reader) Error() error
- func (r *Reader) LastRead() time.Time
- func (r *Reader) ReadBytes() []byte
- func (r *Reader) ReadBytesInto(dst []byte) []byte
- func (r *Reader) ReadBytesMax(max int) []byte
- func (r *Reader) ReadBytesMaxInto(max int, dst []byte) []byte
- func (r *Reader) ReadString() string
- func (r *Reader) ReadStringMax(max int) string
- func (r *Reader) ReadUint16() uint16
- func (r *Reader) ReadUint32() uint32
- func (r *Reader) ReadUint64() uint64
- func (r *Reader) Tot() int
- type Writer
- func (w *Writer) Error() error
- func (w *Writer) LastWrite() time.Time
- func (w *Writer) Tot() int
- func (w *Writer) WriteBytes(bs []byte) (int, error)
- func (w *Writer) WriteString(s string) (int, error)
- func (w *Writer) WriteUint16(v uint16) (int, error)
- func (w *Writer) WriteUint32(v uint32) (int, error)
- func (w *Writer) WriteUint64(v uint64) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrElementSizeExceeded = errors.New("element size exceeded")
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) ReadBytesInto ¶
func (*Reader) ReadBytesMax ¶
func (*Reader) ReadString ¶
func (*Reader) ReadStringMax ¶
func (*Reader) ReadUint16 ¶
func (*Reader) ReadUint32 ¶
func (*Reader) ReadUint64 ¶
Click to show internal directories.
Click to hide internal directories.