Skip to content

Commit 6f2141a

Browse files
Merge
1 parent 86dad9f commit 6f2141a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/firestore/src/index/ordered_code_writer.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ export class OrderedCodeWriter {
230230
this.position = 0;
231231
}
232232

233+
seed(encodedBytes: Uint8Array): void {
234+
this.ensureAvailable(encodedBytes.length);
235+
this.buffer.set(encodedBytes, this.position);
236+
this.position += encodedBytes.length;
237+
}
238+
233239
/** Makes a copy of the encoded bytes in this buffer. */
234240
encodedBytes(): Uint8Array {
235241
return this.buffer.slice(0, this.position);
@@ -320,10 +326,4 @@ export class OrderedCodeWriter {
320326
newBuffer.set(this.buffer); // copy old data
321327
this.buffer = newBuffer;
322328
}
323-
324-
seed(encodedBytes: Uint8Array): void {
325-
this.ensureAvailable(encodedBytes.length);
326-
this.buffer.set(encodedBytes, this.position);
327-
this.position += encodedBytes.length;
328-
}
329329
}

0 commit comments

Comments
 (0)