public ListArray Build(MemoryAllocator allocator = default) { Append(); return(new ListArray(DataType, Length - 1, ValueOffsetsBufferBuilder.Build(allocator), ValueBuilder.Build(allocator), new ArrowBuffer(), 0, 0)); }
public ListArray Build(MemoryAllocator allocator = default) { Append(); var validityBuffer = NullCount > 0 ? ValidityBufferBuilder.Build(allocator).ValueBuffer : ArrowBuffer.Empty; return(new ListArray(DataType, Length - 1, ValueOffsetsBufferBuilder.Build(allocator), ValueBuilder.Build(allocator), validityBuffer, NullCount, 0)); }