MCPcopy Create free account

hub / github.com/davecgh/go-xdr / functions

Functions135 in github.com/davecgh/go-xdr

↓ 25 callersFunctionunmarshalError
unmarshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from fro
xdr2/error.go:111
↓ 24 callersFunctionunmarshalError
unmarshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from fro
xdr/error.go:103
↓ 16 callersMethodError
Error satisfies the error interface and prints human-readable errors.
xdr2/error.go:150
↓ 16 callersMethodString
String returns the ErrorCode as a human-readable name.
xdr2/error.go:79
↓ 15 callersMethodString
String returns the ErrorCode as a human-readable name.
xdr/error.go:73
↓ 15 callersFunctiontestExpectedURet
testExpectedURet is a convenience method to test an expected number of bytes read and error for an unmarshal.
xdr2/decode_test.go:69
↓ 14 callersFunctionmarshalError
marshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from from
xdr/error.go:140
↓ 12 callersFunctionmarshalError
marshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from from
xdr2/error.go:165
↓ 10 callersMethodBytes
Bytes returns the bytes already written to the fixed writer.
xdr2/fixedIO_test.go:49
↓ 9 callersMethodEncodeUint
EncodeUint writes the XDR encoded representation of the passed 32-bit unsigned integer to the encapsulated writer and returns the number of bytes writ
xdr2/encode.go:122
↓ 8 callersMethodDecodeUint
DecodeUint treats the next 4 bytes as an XDR encoded unsigned integer and returns the result as a uint32 along with the number of bytes actually read.
xdr2/decode.go:137
↓ 8 callersMethodDecodeUint
DecodeUint treats the next 4 bytes as an XDR encoded unsigned integer and returns the result as a uint32. An UnmarshalError is returned if there are
xdr/decode.go:147
↓ 8 callersMethodEncodeUint
EncodeInt appends the XDR encoded representation of the passed 32-bit unsigned integer to the Encoder's data. A MarshalError is returned if appending
xdr/encode.go:139
↓ 8 callersFunctionUnmarshal
* Unmarshal parses XDR-encoded data into the value pointed to by v reading from reader r and returning the total number of bytes read. An addressable
xdr2/decode.go:77
↓ 7 callersMethoddecode
decode is the main workhorse for unmarshalling via reflection. It uses the passed reflection value to choose the XDR primitives to decode from the en
xdr2/decode.go:656
↓ 7 callersMethoddecode
decode is the main workhorse for unmarshalling via reflection. It uses the passed reflection value to choose the XDR primitives to decode from the XD
xdr/decode.go:618
↓ 7 callersMethodencode
encode is the main workhorse for marshalling via reflection. It uses the passed reflection value to choose the XDR primitives to encode into the data
xdr/encode.go:540
↓ 6 callersMethodDecodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented DecodeFixedOpaque treats the next 'si
xdr2/decode.go:313
↓ 6 callersMethodDecodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented DecodeFixedOpaque treats the next 'si
xdr/decode.go:315
↓ 6 callersMethodEncodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented EncodeFixedOpaque treats the passed b
xdr2/encode.go:282
↓ 6 callersMethodEncodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented EncodeFixedOpaque treats the passed b
xdr/encode.go:289
↓ 6 callersMethodWrite
Write writes the contents of p to w. When the contents of p would cause the writer to exceed the maximum allowed size of the fixed writer, the writer
xdr2/fixedIO_test.go:36
↓ 6 callersMethodencode
encode is the main workhorse for marshalling via reflection. It uses the passed reflection value to choose the XDR primitives to encode into the enca
xdr2/encode.go:553
↓ 4 callersMethodDecodeInt
DecodeInt treats the next 4 bytes as an XDR encoded integer and returns the result as an int32 along with the number of bytes actually read. An Unmar
xdr2/decode.go:115
↓ 4 callersMethodDecodeInt
DecodeInt treats the next 4 bytes as an XDR encoded integer and returns the result as an int32. An UnmarshalError is returned if there are insufficie
xdr/decode.go:125
↓ 4 callersMethodEncodeInt
EncodeInt writes the XDR encoded representation of the passed 32-bit signed integer to the encapsulated writer and returns the number of bytes written
xdr2/encode.go:95
↓ 4 callersMethodEncodeInt
EncodeInt appends the XDR encoded representation of the passed 32-bit signed integer to the Encoder's data. A MarshalError is returned if appending t
xdr/encode.go:114
↓ 4 callersFunctionTstDecode
TstDecode creates a new Decoder for the passed reader and returns the internal decode function on the Decoder.
xdr2/internal_test.go:40
↓ 4 callersFunctionnewFixedWriter
newFixedWriter returns a new io.Writer that will error once more bytes than the specified max have been written.
xdr2/fixedIO_test.go:55
↓ 4 callersFunctiontestExpectedMRet
testExpectedMRet is a convenience method to test an expected number of bytes written and error for a marshal.
xdr2/encode_test.go:31
↓ 3 callersMethodDecodeBool
DecodeBool treats the next 4 bytes as an XDR encoded boolean value and returns the result as a bool along with the number of bytes actually read. An
xdr2/decode.go:185
↓ 3 callersMethodDecodeBool
DecodeBool treats the next 4 bytes as an XDR encoded boolean value and returns the result as a bool. An UnmarshalError is returned if there are insuf
xdr/decode.go:192
↓ 3 callersMethodDecodeString
DecodeString treats the next bytes as a variable length XDR encoded string and returns the result as a string along with the number of bytes actually
xdr2/decode.go:382
↓ 3 callersMethodDecodeString
DecodeString treats the next bytes as a variable length XDR encoded string and returns the result as a string. Character encoding is assumed to be UT
xdr/decode.go:370
↓ 3 callersMethodEncodeBool
EncodeBool writes the XDR encoded representation of the passed boolean to the encapsulated writer and returns the number of bytes written. A MarshalE
xdr2/encode.go:168
↓ 3 callersMethodEncodeBool
EncodeInt appends the XDR encoded representation of the passed boolean to the Encoder's data. A MarshalError is returned if appending the data would
xdr/encode.go:182
↓ 3 callersMethodEncodeString
EncodeString writes the XDR encoded representation of the passed string to the encapsulated writer and returns the number of bytes written. Character
xdr2/encode.go:348
↓ 3 callersMethodEncodeString
EncodeString appends the XDR encoded representation of the passed string to the Encoder's data. Character encoding is assumed to be UTF-8 and therefo
xdr/encode.go:346
↓ 3 callersMethodEncodeUhyper
EncodeUhyper writes the XDR encoded representation of the passed 64-bit unsigned integer to the encapsulated writer and returns the number of bytes wr
xdr2/encode.go:217
↓ 3 callersMethodEncodeUhyper
EncodeUhyper appends the XDR encoded representation of the passed 64-bit unsigned integer to the Encoder's data. A MarshalError is returned if append
xdr/encode.go:228
↓ 3 callersMethodencodeFixedArray
encodeFixedArray writes the XDR encoded representation of each element in the passed array represented by the reflection value to the encapsulated wri
xdr2/encode.go:372
↓ 3 callersMethodencodeFixedArray
encodeFixedArray appends the XDR encoded representation of each element in the passed array represented by the reflection value to the Encoder's data.
xdr/encode.go:371
↓ 3 callersMethodindirect
indirect dereferences pointers until it reaches a non-pointer. This allows transparent encoding through arbitrary levels of indirection.
xdr2/encode.go:626
↓ 3 callersMethodindirect
indirect dereferences pointers allocating them as needed until it reaches a non-pointer. This allows transparent decoding through arbitrary levels of
xdr2/decode.go:814
↓ 3 callersMethodindirect
indirect dereferences pointers until it reaches a non-pointer. This allows transparent encoding through arbitrary levels of indirection.
xdr/encode.go:614
↓ 3 callersMethodindirect
indirect dereferences pointers allocating them as needed until it reaches a non-pointer. This allows transparent decoding through arbitrary levels of
xdr/decode.go:761
↓ 2 callersMethodData
Data returns the XDR encoded data stored in the Encoder.
xdr/encode.go:623
↓ 2 callersMethodDecode
Decode operates identically to the Unmarshal function with the exception of using the reader associated with the Decoder as the source of XDR-encoded
xdr2/decode.go:838
↓ 2 callersMethodDecodeDouble
DecodeDouble treats the next 8 bytes as an XDR encoded double-precision floating point and returns the result as a float64 along with the number of by
xdr2/decode.go:282
↓ 2 callersMethodDecodeDouble
DecodeDouble treats the next 8 bytes as an XDR encoded double-precision floating point and returns the result as a float64. An UnmarshalError is retu
xdr/decode.go:285
↓ 2 callersMethodDecodeFloat
DecodeFloat treats the next 4 bytes as an XDR encoded floating point and returns the result as a float32 along with the number of bytes actually read.
xdr2/decode.go:259
↓ 2 callersMethodDecodeFloat
DecodeFloat treats the next 4 bytes as an XDR encoded floating point and returns the result as a float32. An UnmarshalError is returned if there are
xdr/decode.go:263
↓ 2 callersMethodDecodeHyper
DecodeHyper treats the next 8 bytes as an XDR encoded hyper value and returns the result as an int64 along with the number of bytes actually read. A
xdr2/decode.go:210
↓ 2 callersMethodDecodeHyper
DecodeHyper treats the next 8 bytes as an XDR encoded hyper value and returns the result as an int64. An UnmarshalError is returned if there are insu
xdr/decode.go:215
↓ 2 callersMethodDecodeUhyper
DecodeUhyper treats the next 8 bytes as an XDR encoded unsigned hyper value and returns the result as a uint64 along with the number of bytes actual
xdr2/decode.go:235
↓ 2 callersMethodDecodeUhyper
DecodeUhyper treats the next 8 bytes as an XDR encoded unsigned hyper value and returns the result as a uint64. An UnmarshalError is returned if the
xdr/decode.go:239
↓ 2 callersMethodEncodeDouble
EncodeDouble writes the XDR encoded representation of the passed 64-bit (double-precision) floating point to the encapsulated writer and returns the n
xdr2/encode.go:263
↓ 2 callersMethodEncodeDouble
EncodeDouble appends the XDR encoded representation of the passed 64-bit (double-precision) floating point to the Encoder's data. A MarshalError is r
xdr/encode.go:271
↓ 2 callersMethodEncodeFloat
EncodeFloat writes the XDR encoded representation of the passed 32-bit (single-precision) floating point to the encapsulated writer and returns the nu
xdr2/encode.go:248
↓ 2 callersMethodEncodeFloat
EncodeFloat appends the XDR encoded representation of the passed 32-bit (single-precision) floating point to the Encoder's data. A MarshalError is re
xdr/encode.go:257
↓ 2 callersMethodEncodeHyper
EncodeHyper writes the XDR encoded representation of the passed 64-bit signed integer to the encapsulated writer and returns the number of bytes writt
xdr2/encode.go:186
↓ 2 callersMethodEncodeHyper
EncodeHyper appends the XDR encoded representation of the passed 64-bit signed integer to the Encoder's data. A MarshalError is returned if appending
xdr/encode.go:199
↓ 2 callersFunctionMarshal
* Marshal writes the XDR encoding of v to writer w and returns the number of bytes written. It traverses v recursively and automatically indirects po
xdr2/encode.go:75
↓ 2 callersFunctionNewDecoder
NewDecoder returns a Decoder that can be used to manually decode XDR data from a provided reader. Typically, Unmarshal should be used instead of manu
xdr2/decode.go:865
↓ 2 callersFunctionNewDecoderLimited
NewDecoderLimited is identical to NewDecoder but it sets maxReadSize in order to cap reads.
xdr2/decode.go:871
↓ 2 callersFunctionNewEncoder
NewEncoder returns an object that can be used to manually choose fields to XDR encode to the passed writer w. Typically, Marshal should be used inste
xdr2/encode.go:667
↓ 2 callersMethodReset
Reset clears the internal XDR encoded data so the Encoder may be reused.
xdr/encode.go:628
↓ 2 callersFunctionUnmarshalLimited
UnmarshalLimited is identical to Unmarshal but it sets maxReadSize in order to cap reads.
xdr2/decode.go:84
↓ 2 callersMethoddecodeArray
decodeArray treats the next bytes as a variable length series of XDR encoded elements of the same type as the array represented by the reflection valu
xdr2/decode.go:453
↓ 2 callersMethoddecodeArray
decodeArray treats the next bytes as a variable length series of XDR encoded elements of the same type as the array represented by the reflection valu
xdr/decode.go:433
↓ 2 callersMethoddecodeFixedArray
decodeFixedArray treats the next bytes as a series of XDR encoded elements of the same type as the array represented by the reflection value and decod
xdr2/decode.go:414
↓ 2 callersMethoddecodeFixedArray
decodeFixedArray treats the next bytes as a series of XDR encoded elements of the same type as the array represented by the reflection value and decod
xdr/decode.go:399
↓ 2 callersMethodencodeArray
encodeArray writes an XDR encoded integer representing the number of elements in the passed slice represented by the reflection value followed by the
xdr2/encode.go:417
↓ 2 callersMethodencodeArray
encodeArray appends an XDR encoded integer representing the number of elements in the passed slice represented by the reflection value followed by the
xdr/encode.go:413
↓ 1 callersMethodDecodeEnum
DecodeEnum treats the next 4 bytes as an XDR encoded enumeration value and returns the result as an int32 after verifying that the value is in the pro
xdr2/decode.go:162
↓ 1 callersMethodDecodeEnum
DecodeEnum treats the next 4 bytes as an XDR encoded enumeration value and returns the result as an int32 after verifying that the value is in the pro
xdr/decode.go:171
↓ 1 callersMethodDecodeOpaque
DecodeOpaque treats the next bytes as variable length XDR encoded opaque data and returns the result as a byte slice along with the number of bytes ac
xdr2/decode.go:348
↓ 1 callersMethodDecodeOpaque
DecodeOpaque treats the next bytes as variable length XDR encoded opaque data and returns the result as a byte slice. An UnmarshalError is returned i
xdr/decode.go:346
↓ 1 callersMethodEncode
Encode operates identically to the Marshal function with the exception of using the writer associated with the Encoder for the destination of the XDR-
xdr2/encode.go:638
↓ 1 callersMethodEncodeEnum
EncodeEnum treats the passed 32-bit signed integer as an enumeration value and, if it is in the list of passed valid enumeration values, writes the XD
xdr2/encode.go:150
↓ 1 callersMethodEncodeEnum
EncodeEnum treats the passed 32-bit signed integer as an enumeration value and, if it is in the list of passed valid enumeration values, appends the X
xdr/encode.go:165
↓ 1 callersMethodEncodeOpaque
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
xdr2/encode.go:323
↓ 1 callersMethodEncodeOpaque
EncodeOpaque treats the passed byte slice as opaque data of a variable size and appends the XDR encoded representation of it to the Encoder's data. A
xdr/encode.go:320
↓ 1 callersFunctionIsIO
IsIO returns a boolean indicating whether the error is known to report that the underlying reader or writer encountered an ErrIO.
xdr2/error.go:127
↓ 1 callersFunctionMarshal
* Marshal returns the XDR encoding of v. It traverses v recursively and automatically indirects pointers through arbitrary depth to encode the actual
xdr/encode.go:74
↓ 1 callersFunctionNewDecoder
NewDecoder returns a Decoder that can be used to manually decode XDR data from a provided byte slice. Typically, Unmarshal should be used instead of
xdr/decode.go:782
↓ 1 callersFunctionNewEncoder
NewEncoder returns an object that can be used to manually build an XDR encoded byte slice. Typically, Marshal should be used instead of manually crea
xdr/encode.go:638
↓ 1 callersFunctionTstEncode
TstEncode creates a new Encoder to the passed writer and returns the internal encode function on the Encoder.
xdr2/internal_test.go:33
↓ 1 callersFunctionUnmarshal
* Unmarshal parses XDR-encoded data into the value pointed to by v. An addressable pointer must be provided since Unmarshal needs to both store the r
xdr/decode.go:76
↓ 1 callersMethoddecodeInterface
decodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be decoded into and if
xdr2/decode.go:626
↓ 1 callersMethoddecodeInterface
decodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be decoded into and if
xdr/decode.go:591
↓ 1 callersMethoddecodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
xdr2/decode.go:584
↓ 1 callersMethoddecodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
xdr/decode.go:552
↓ 1 callersMethoddecodeStruct
decodeStruct treats the next bytes as a series of XDR encoded elements of the same type as the exported fields of the struct represented by the passed
xdr2/decode.go:508
↓ 1 callersMethoddecodeStruct
decodeStruct treats the next bytes as a series of XDR encoded elements of the same type as the exported fields of the struct represented by the passed
xdr/decode.go:484
↓ 1 callersMethodencodeInterface
encodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be encoded if it is, e
xdr2/encode.go:534
↓ 1 callersMethodencodeInterface
encodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be encoded if it is, e
xdr/encode.go:523
↓ 1 callersMethodencodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
xdr2/encode.go:502
↓ 1 callersMethodencodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
xdr/encode.go:490
↓ 1 callersMethodencodeStruct
encodeStruct writes an XDR encoded representation of each value in the exported fields of the struct represented by the passed reflection value to the
xdr2/encode.go:441
next →1–100 of 135, ranked by callers