Depracations + Semantic Changes

This commit is contained in:
Adhiraj
2020-07-19 13:21:44 +05:30
parent 5a39683c02
commit da73905b5e
10 changed files with 68 additions and 31 deletions

View File

@@ -23,7 +23,7 @@ export default class Decoder {
const value = this.buffer.slice(this.index, this.index + length)
this.index += length
return new TextDecoder().decode(value)
return value.toString ('utf-8')
}
readBytes(n: number): Buffer {
this.checkEOS(n)