UNPKG
fruitstand
Version:
latest (0.0.1)
0.0.1
fruit stand
github.com/classmember/fruitstand
classmember/fruitstand
fruitstand
/
examples
/
nodejs-mongodb-angularjs-web-development
/
ch05
/
buffer_write.js
8 lines
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
buf256 = new Buffer(
256
); buf256.fill(
0
); buf256.
write
(
"add some text"
); console.
log
(buf256.toString()); buf256.
write
(
"more text"
,
9
,
9
); console.
log
(buf256.toString()); buf256[
18
] =
43
; console.
log
(buf256.toString());