Method GetBinaryValue
GetBinaryValue()
Return the raw byte[] for the binary field. Note that you must also call BinaryLength and BinaryOffset to know which range of bytes in this returned array belong to the field.
Declaration
byte[] GetBinaryValue()
Returns
Type | Description |
---|---|
System.Byte[] | reference to the Field value as byte[]. |
GetBinaryValue(Byte[])
Return the raw byte[] for the binary field. Note that you must also call BinaryLength and BinaryOffset to know which range of bytes in this returned array belong to the field.
About reuse: if you pass in the result byte[] and it is used, likely the underlying implementation will hold onto this byte[] and return it in future calls to GetBinaryValue() or GetBinaryValue(). So if you subsequently re-use the same byte[] elsewhere it will alter this Fieldable's value.
Declaration
byte[] GetBinaryValue(byte[] result)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | result | User defined buffer that will be used if possible. If this is null or not large enough, a new buffer is allocated |
Returns
Type | Description |
---|---|
System.Byte[] | reference to the Field value as byte[]. |