Skip to content

Commit 71ed90f

Browse files
author
Dmitry Shirokov
authored
Merge pull request #10 from runk/fix-undocumented-api-usage
fix: Stop using undocumented node buffer methods
2 parents b3e28ff + 7e403e7 commit 71ed90f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/decoder.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,7 @@ export default class Decoder {
313313
}
314314

315315
private decodeString(offset: number, size: number) {
316-
// @ts-ignore
317-
return this.db.utf8Slice(offset, offset + size);
318-
319-
// A little slower:
320-
// return this.db.toString('utf8', offset, offset + size);
316+
return this.db.toString('utf8', offset, offset + size);
321317
}
322318

323319
private decodeBigUint(offset: number, size: number) {

0 commit comments

Comments
 (0)