Example #1
0
 public static Offset<RecordBatch> CreateRecordBatch(FlatBufferBuilder builder,
     long length = 0,
     VectorOffset nodesOffset = default(VectorOffset),
     VectorOffset buffersOffset = default(VectorOffset)) {
   builder.StartObject(3);
   RecordBatch.AddLength(builder, length);
   RecordBatch.AddBuffers(builder, buffersOffset);
   RecordBatch.AddNodes(builder, nodesOffset);
   return RecordBatch.EndRecordBatch(builder);
 }
Example #2
0
 public static Offset <RecordBatch> CreateRecordBatch(FlatBufferBuilder builder,
                                                      long length = 0,
                                                      VectorOffset nodesOffset   = default(VectorOffset),
                                                      VectorOffset buffersOffset = default(VectorOffset),
                                                      Offset <BodyCompression> compressionOffset = default(Offset <BodyCompression>))
 {
     builder.StartObject(4);
     RecordBatch.AddLength(builder, length);
     RecordBatch.AddCompression(builder, compressionOffset);
     RecordBatch.AddBuffers(builder, buffersOffset);
     RecordBatch.AddNodes(builder, nodesOffset);
     return(RecordBatch.EndRecordBatch(builder));
 }