Created
December 26, 2019 02:25
-
-
Save tytrdev/795bfd0f97e0dfb318e6d00d447dd22c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_read(n) { | |
this.bytesRead += n; | |
const value = this.buffer.toString('utf-8', this.bytesRead - n, this.bytesRead); | |
this.push(value || null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment