Skip to content

Commit

Permalink
Remove offset from buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 3, 2023
1 parent 28795dc commit 282c30b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/src/builder/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ const sliceOrExtendArray = <T extends TypedArray | BigIntArray>(arr: T, len = 0)
arr.length >= len ? arr.subarray(0, len) : memcpy(new (arr.constructor as any)(len), arr, 0)
) as T;

/** @ignore */
export interface BufferBuilder<T extends TypedArray | BigIntArray = any> {
readonly offset: number;
}

/** @ignore */
export class BufferBuilder<T extends TypedArray | BigIntArray> {

Expand Down Expand Up @@ -88,8 +83,6 @@ export class BufferBuilder<T extends TypedArray | BigIntArray> {
}
}

(BufferBuilder.prototype as any).offset = 0;

/** @ignore */
export class DataBufferBuilder<T extends TypedArray | BigIntArray> extends BufferBuilder<T> {
public last() { return this.get(this.length - 1); }
Expand Down

0 comments on commit 282c30b

Please sign in to comment.