public TBuilder Reserve(int capacity) { ValueOffsets.Reserve(capacity + 1); ValueBuffer.Reserve(capacity); ValidityBuffer.Reserve(capacity + 1); return(Instance); }
public TBuilder Reserve(int capacity) { // TODO: [ARROW-9366] Reserve capacity in the value buffer in a more sensible way. ValueOffsets.Reserve(capacity + 1); ValueBuffer.Reserve(capacity); ValidityBuffer.Reserve(capacity + 1); return(Instance); }
public Builder Reserve(int capacity) { if (capacity < 0) { throw new ArgumentOutOfRangeException(nameof(capacity)); } ValueBuffer.Reserve(BitUtility.ByteCount(capacity)); ValidityBuffer.Reserve(BitUtility.ByteCount(capacity)); return(this); }