xrdenc

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RBuffer

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

RBuffer decodes values from a buffer according to the XRootD protocol.

func NewRBuffer

func NewRBuffer(data []byte) *RBuffer

func (*RBuffer) Bytes

func (r *RBuffer) Bytes() []byte

func (*RBuffer) Len

func (r *RBuffer) Len() int

func (*RBuffer) Pos

func (r *RBuffer) Pos() int

func (*RBuffer) ReadBool

func (r *RBuffer) ReadBool() bool

func (*RBuffer) ReadBytes

func (r *RBuffer) ReadBytes(data []byte)

func (*RBuffer) ReadI32

func (r *RBuffer) ReadI32() int32

func (*RBuffer) ReadI64

func (r *RBuffer) ReadI64() int64

func (*RBuffer) ReadLen

func (r *RBuffer) ReadLen() int

func (*RBuffer) ReadStr

func (r *RBuffer) ReadStr() string

func (*RBuffer) ReadU16

func (r *RBuffer) ReadU16() uint16

func (*RBuffer) ReadU8

func (r *RBuffer) ReadU8() uint8

func (*RBuffer) Skip

func (r *RBuffer) Skip(n int)

type WBuffer

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

WBuffer encodes values to a buffer according to the XRootD protocol.

func (*WBuffer) Bytes

func (w *WBuffer) Bytes() []byte

func (*WBuffer) Next

func (w *WBuffer) Next(n int)

func (*WBuffer) WriteBool

func (w *WBuffer) WriteBool(v bool)

func (*WBuffer) WriteBytes

func (w *WBuffer) WriteBytes(vs []byte)

func (*WBuffer) WriteI32

func (w *WBuffer) WriteI32(v int32)

func (*WBuffer) WriteI64

func (w *WBuffer) WriteI64(v int64)

func (*WBuffer) WriteLen

func (w *WBuffer) WriteLen(n int)

func (*WBuffer) WriteStr

func (w *WBuffer) WriteStr(str string)

func (*WBuffer) WriteU16

func (w *WBuffer) WriteU16(v uint16)

func (*WBuffer) WriteU8

func (w *WBuffer) WriteU8(v uint8)

Jump to

Keyboard shortcuts

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