xdr

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package xdr implements an XDR (RFC 4506) encoder/decoder.

Index

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 NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Error

func (r *Reader) Error() error

func (*Reader) ReadBytes

func (r *Reader) ReadBytes() []byte

func (*Reader) ReadBytesInto

func (r *Reader) ReadBytesInto(dst []byte) []byte

func (*Reader) ReadBytesMax

func (r *Reader) ReadBytesMax(max int) []byte

func (*Reader) ReadBytesMaxInto

func (r *Reader) ReadBytesMaxInto(max int, dst []byte) []byte

func (*Reader) ReadString

func (r *Reader) ReadString() string

func (*Reader) ReadStringMax

func (r *Reader) ReadStringMax(max int) string

func (*Reader) ReadUint16

func (r *Reader) ReadUint16() uint16

func (*Reader) ReadUint32

func (r *Reader) ReadUint32() uint32

func (*Reader) ReadUint64

func (r *Reader) ReadUint64() uint64

func (*Reader) Tot

func (r *Reader) Tot() int

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Error

func (w *Writer) Error() error

func (*Writer) Tot

func (w *Writer) Tot() int

func (*Writer) WriteBytes

func (w *Writer) WriteBytes(bs []byte) (int, error)

func (*Writer) WriteString

func (w *Writer) WriteString(s string) (int, error)

func (*Writer) WriteUint16

func (w *Writer) WriteUint16(v uint16) (int, error)

func (*Writer) WriteUint32

func (w *Writer) WriteUint32(v uint32) (int, error)

func (*Writer) WriteUint64

func (w *Writer) WriteUint64(v uint64) (int, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL