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

Method EncodeFloat

xdr2/encode.go:248–251  ·  view source on GitHub ↗

EncodeFloat writes the XDR encoded representation of the passed 32-bit (single-precision) floating point 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.6 - Floating Poin

(v float32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestEncoderFunction · 0.95
encodeMethod · 0.95

Calls 1

EncodeUintMethod · 0.95

Tested by 1

TestEncoderFunction · 0.76