public TBuilder Resize(int length) { ValueOffsets.Resize(length + 1); ValueBuffer.Resize(length); ValidityBuffer.Resize(length + 1); return(Instance); }
public TBuilder Resize(int length) { // TODO: [ARROW-9366] Resize the value buffer to a safe length based on offsets, not `length`. ValueOffsets.Resize(length + 1); ValueBuffer.Resize(length); ValidityBuffer.Resize(length + 1); return(Instance); }
public Builder Resize(int length) { if (length < 0) { throw new ArgumentOutOfRangeException(nameof(length)); } ValueBuffer.Resize(BitUtility.ByteCount(length)); ValidityBuffer.Resize(BitUtility.ByteCount(length)); Length = length; return(this); }