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

Method EncodeInt

xdr2/encode.go:95–110  ·  view source on GitHub ↗

EncodeInt writes the XDR encoded representation of the passed 32-bit signed integer 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.1 - Integer 32-bit big-endian signed

(v int32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestEncoderFunction · 0.95
EncodeEnumMethod · 0.95
EncodeBoolMethod · 0.95
encodeMethod · 0.95

Calls 3

WriteMethod · 0.80
marshalErrorFunction · 0.70
ErrorMethod · 0.45

Tested by 1

TestEncoderFunction · 0.76