Skip to content

Commit a2dbb75

Browse files
committed
Remove memcpy dependency until compatible with all supported node versions
1 parent ff20771 commit a2dbb75

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bytebuffer",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"author": "Daniel Wirtz <[email protected]>",
55
"description": "A full-featured ByteBuffer implementation using typed arrays.",
66
"main": "ByteBuffer.js",

dist/ByteBufferAB.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
* @const
119119
* @expose
120120
*/
121-
ByteBuffer.VERSION = "3.0.0";
121+
ByteBuffer.VERSION = "3.0.1";
122122

123123
/**
124124
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
@@ -252,7 +252,7 @@
252252
/**
253253
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
254254
* {@link ByteBuffer#limit} to the length of the wrapped data.
255-
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
255+
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
256256
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
257257
* "utf8")
258258
* @param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to

dist/ByteBufferAB.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ByteBufferAB.min.js.gz

0 Bytes
Binary file not shown.

dist/ByteBufferNB.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = (function() {
110110
* @const
111111
* @expose
112112
*/
113-
ByteBuffer.VERSION = "3.0.0";
113+
ByteBuffer.VERSION = "3.0.1";
114114

115115
/**
116116
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
@@ -242,7 +242,7 @@ module.exports = (function() {
242242
/**
243243
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
244244
* {@link ByteBuffer#limit} to the length of the wrapped data.
245-
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
245+
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
246246
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
247247
* "utf8")
248248
* @param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to

docs/ByteBuffer.html

+3
Original file line numberDiff line numberDiff line change
@@ -3772,6 +3772,9 @@ <h5>Parameters:</h5>
37723772
|
37733773

37743774
<span class="param-type">string</span>
3775+
|
3776+
3777+
<span class="param-type">!Array.&lt;number></span>
37753778

37763779

37773780

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bytebuffer",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"author": "Daniel Wirtz <[email protected]>",
55
"description": "The swiss army knife for binary data in JavaScript.",
66
"main": "ByteBuffer.js",
@@ -16,9 +16,6 @@
1616
"long": "~1",
1717
"bufferview": "~1"
1818
},
19-
"optionalDependencies": {
20-
"memcpy": "~0.4"
21-
},
2219
"devDependencies": {
2320
"testjs": "~1",
2421
"metascript": "~0",

src/methods/static/wrap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
33
* {@link ByteBuffer#limit} to the length of the wrapped data.
44
//? if (NODE) {
5-
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
5+
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
66
//? } else {
7-
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
7+
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
88
//? }
99
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
1010
* "utf8")

0 commit comments

Comments
 (0)