# HG changeset patch # User Yaroslav Zhuravlev # Date 1603201013 -3600 # Node ID 6fdefb00858f94e10b7aa3f0e733c392a62e6e7f # Parent 454af1d390210877c940e4635633c29aa1b202f6 Documented Buffer.from(arrayBuffer) method in njs. diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="56">
@@ -969,6 +969,17 @@ in the range 0255. Array entries outside that range will be truncated. +Buffer.from(arrayBuffer, +byteOffset[, +length]]) + +Creates a view of the ArrayBuffer +without copying the underlying memory. +The optional byteOffset and length arguments +specify a memory range within the arrayBuffer +that will be shared by the Buffer. + + Buffer.from(buffer) Copies the passed buffer data onto a new Buffer instance.