Kinetica   C#   API  Version 7.2.3.0
Avro.Generic.PreresolvingDatumReader< T >.ArrayAccess Interface Reference

Public Member Functions

object Create (object reuse)
 Creates a new array object. More...
 
void EnsureSize (ref object array, int targetSize)
 Hint that the array should be able to handle at least targetSize elements. More...
 
void Resize (ref object array, int targetSize)
 Resizes the array to the new value. More...
 
void AddElements (object array, int elements, int index, ReadItem itemReader, Decoder decoder, bool reuse)
 

Detailed Description

Definition at line 522 of file PreresolvingDatumReader.cs.

Member Function Documentation

◆ AddElements()

void Avro.Generic.PreresolvingDatumReader< T >.ArrayAccess.AddElements ( object  array,
int  elements,
int  index,
ReadItem  itemReader,
Decoder  decoder,
bool  reuse 
)

◆ Create()

object Avro.Generic.PreresolvingDatumReader< T >.ArrayAccess.Create ( object  reuse)

Creates a new array object.

The initial size of the object could be anything.

Parameters
reuseIf appropriate use this instead of creating a new one.
Returns
An object suitable to deserialize an avro array

◆ EnsureSize()

void Avro.Generic.PreresolvingDatumReader< T >.ArrayAccess.EnsureSize ( ref object  array,
int  targetSize 
)

Hint that the array should be able to handle at least targetSize elements.

The array is not required to be resized

Parameters
arrayArray object who needs to support targetSize elements. This is guaranteed to be somthing returned by a previous call to CreateArray().
targetSizeThe new size.

◆ Resize()

void Avro.Generic.PreresolvingDatumReader< T >.ArrayAccess.Resize ( ref object  array,
int  targetSize 
)

Resizes the array to the new value.

Parameters
arrayArray object whose size is required. This is guaranteed to be somthing returned by a previous call to CreateArray().
targetSizeThe new size.

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