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

Method EncodeBool

xdr2/encode.go:168–174  ·  view source on GitHub ↗

EncodeBool writes the XDR encoded representation of the passed boolean to the encapsulated writer and returns the number of bytes written. A MarshalError with an error code of ErrIO is returned if writing the data fails. Reference: RFC Section 4.4 - Boolean Represented as an XDR encoded enumerat

(v bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestEncoderFunction · 0.95
encodeMethod · 0.95
ExampleNewEncoderFunction · 0.95

Calls 1

EncodeIntMethod · 0.95

Tested by 2

TestEncoderFunction · 0.76
ExampleNewEncoderFunction · 0.76