File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/firestore/src/index Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,12 @@ export class OrderedCodeWriter {
230
230
this . position = 0 ;
231
231
}
232
232
233
+ seed ( encodedBytes : Uint8Array ) : void {
234
+ this . ensureAvailable ( encodedBytes . length ) ;
235
+ this . buffer . set ( encodedBytes , this . position ) ;
236
+ this . position += encodedBytes . length ;
237
+ }
238
+
233
239
/** Makes a copy of the encoded bytes in this buffer. */
234
240
encodedBytes ( ) : Uint8Array {
235
241
return this . buffer . slice ( 0 , this . position ) ;
@@ -320,10 +326,4 @@ export class OrderedCodeWriter {
320
326
newBuffer . set ( this . buffer ) ; // copy old data
321
327
this . buffer = newBuffer ;
322
328
}
323
-
324
- seed ( encodedBytes : Uint8Array ) : void {
325
- this . ensureAvailable ( encodedBytes . length ) ;
326
- this . buffer . set ( encodedBytes , this . position ) ;
327
- this . position += encodedBytes . length ;
328
- }
329
329
}
You can’t perform that action at this time.
0 commit comments