public TBuilder Clear() { ValueOffsets.Clear(); ValueBuffer.Clear(); ValidityBuffer.Clear(); return(Instance); }
/// <summary> /// Clear all contents appended so far. /// </summary> /// <returns>Returns the builder (for fluent-style composition).</returns> public TBuilder Clear() { ValueOffsets.Clear(); ValueBuffer.Clear(); ValidityBuffer.Clear(); // Always write the first offset before anything has been written. Offset = 0; ValueOffsets.Append(Offset); return(Instance); }