package ndr

Import Path
	github.com/jcmturner/rpc/v2/ndr (on go.dev)

Dependency Relation
	imports 10 packages, and imported by 2 packages

Involved Source Files arrays.go Package ndr provides the ability to unmarshal NDR encoded byte steams into Go data structures error.go header.go pipe.go primitives.go rawbytes.go strings.go tags.go union.go
Package-Level Type Names (total 6)
/* sort by: | */
CommonHeader implements the NDR common header: https://msdn.microsoft.com/en-us/library/cc243889.aspx CharacterEncoding uint8 Endianness binary.ByteOrder Filler []byte FloatRepresentation uint8 HeaderLength uint16 Version uint8
Decoder unmarshals NDR byte stream data into a Go struct representation Decode unmarshals the NDR encoded bytes into the pointer of a struct provided. func NewDecoder(r io.Reader) *Decoder
Malformed implements the error interface for malformed NDR encoding errors. EText string Error implements the error interface on the Malformed struct. Malformed : error func Errorf(format string, a ...interface{}) Malformed
PrivateHeader implements the NDR private header: https://msdn.microsoft.com/en-us/library/cc243919.aspx Filler []byte ObjectBufferLength uint32
RawBytes interface should be implemented if reading just a number of bytes from the NDR stream ( RawBytes) Size(interface{}) int github.com/jcmturner/rpc/v2/mstypes.EncodedBlob
Union interface must be implemented by structs that will be unmarshaled into from the NDR byte stream union representation. The union's discriminating tag will be passed to the SwitchFunc method. The discriminating tag field must have the struct tag: `ndr:"unionTag"` If the union is encapsulated the discriminating tag field must have the struct tag: `ndr:"encapsulated"` The possible value fields that can be selected from must have the struct tag: `ndr:"unionField"` ( Union) SwitchFunc(t interface{}) string github.com/jcmturner/rpc/v2/mstypes.ClaimEntry
Package-Level Functions (total 2)
Errorf formats an error message into a malformed NDR error.
NewDecoder creates a new instance of a NDR Decoder.
Package-Level Constants (total 17)
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Byte sizes of primitive types
Struct tag values
Union related constants such as struct tag values
Struct tag values
Struct tag values
Union related constants such as struct tag values
Union related constants such as struct tag values
Struct tag values