Documentation ¶
Overview ¶
Package xdr implements an XDR (RFC 4506) encoder/decoder.
Index ¶
- func ElementSizeExceeded(field string, size, limit int) error
- type AppendWriter
- type Reader
- func (r *Reader) Error() error
- func (r *Reader) ReadBool() bool
- 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) ReadRaw(bs []byte) (int, error)
- 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) ReadUint8() uint8
- type Writer
- func (w *Writer) Error() error
- func (w *Writer) Tot() int
- func (w *Writer) WriteBool(v bool) (int, error)
- func (w *Writer) WriteBytes(bs []byte) (int, error)
- func (w *Writer) WriteRaw(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)
- func (w *Writer) WriteUint8(v uint8) (int, error)
- type XDRError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementSizeExceeded ¶ added in v0.10.3
Types ¶
type AppendWriter ¶
type AppendWriter []byte
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.