From 6b0cd35b412c228687acf2161143e5f295fbfb57 Mon Sep 17 00:00:00 2001 From: nrlquaker Date: Wed, 23 May 2018 14:51:46 +0300 Subject: [PATCH] Add nextStringZero to Api section in readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9d13012..b14ccd6 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,9 @@ Read a buffer with specified length ### nextString(length, [encoding]) Read next length of bytes as String, encoding default is 'utf8' +### nextStringZero([encoding]) +Read next bytes till the end of buffer as null-terminated string, encoding default is 'utf8'. + ### next(Int8|UInt8)\[(Int16|UInt16|Int32|UInt32|Float|Double)(LE|BE)\]() Read next bytes as given types, the value is just as the same format Buffer in nodejs doc.