MCPcopy Create free account
hub / github.com/davecgh/go-xdr / EncodeOpaque

Method EncodeOpaque

xdr2/encode.go:323–333  ·  view source on GitHub ↗

EncodeOpaque treats the passed byte slice as opaque data of a variable size and writes the XDR encoded representation of it to the encapsulated writer. It returns the number of bytes written. A MarshalError with an error code of ErrIO is returned if writing the data fails. Reference: RFC Section

(v []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestEncoderFunction · 0.95

Calls 2

EncodeUintMethod · 0.95
EncodeFixedOpaqueMethod · 0.95

Tested by 1

TestEncoderFunction · 0.76