Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | List of all members
Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess Interface Reference

Public Member Functions

void EnsureArrayObject (object value)
 Checks if the given object is an array. If it is a valid array, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an array. More...
 
long GetArrayLength (object value)
 Returns the length of an array. The default implementation requires the object to be an array of objects and returns its length. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called. More...
 
void WriteArrayValues (object array, WriteItem valueWriter, Encoder encoder)
 Returns the element at the given index from the given array object. The default implementation requires that the value is an object array and returns the element in that array. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called. More...
 

Member Function Documentation

void Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.EnsureArrayObject ( object  value)

Checks if the given object is an array. If it is a valid array, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an array.

Parameters
value
long Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.GetArrayLength ( object  value)

Returns the length of an array. The default implementation requires the object to be an array of objects and returns its length. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.

Parameters
valueThe object whose array length is required
Returns
The array length of the given object
void Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.WriteArrayValues ( object  array,
WriteItem  valueWriter,
Encoder  encoder 
)

Returns the element at the given index from the given array object. The default implementation requires that the value is an object array and returns the element in that array. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.

Parameters
valueThe array object
indexThe index to look for
Returns
The array element at the index

The documentation for this interface was generated from the following file: