Skip to content

Commit

Permalink
Remove memcpy dependency until compatible with all supported node ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
dcodeIO committed Jun 18, 2014
1 parent ff20771 commit a2dbb75
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebuffer",
"version": "3.0.0",
"version": "3.0.1",
"author": "Daniel Wirtz <dcode@dcode.io>",
"description": "A full-featured ByteBuffer implementation using typed arrays.",
"main": "ByteBuffer.js",
Expand Down
4 changes: 2 additions & 2 deletions dist/ByteBufferAB.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
* @const
* @expose
*/
ByteBuffer.VERSION = "3.0.0";
ByteBuffer.VERSION = "3.0.1";

/**
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
Expand Down Expand Up @@ -252,7 +252,7 @@
/**
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
* {@link ByteBuffer#limit} to the length of the wrapped data.
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
* "utf8")
* @param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to
Expand Down
2 changes: 1 addition & 1 deletion dist/ByteBufferAB.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/ByteBufferAB.min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/ByteBufferNB.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = (function() {
* @const
* @expose
*/
ByteBuffer.VERSION = "3.0.0";
ByteBuffer.VERSION = "3.0.1";

/**
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
Expand Down Expand Up @@ -242,7 +242,7 @@ module.exports = (function() {
/**
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
* {@link ByteBuffer#limit} to the length of the wrapped data.
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
* "utf8")
* @param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to
Expand Down
3 changes: 3 additions & 0 deletions docs/ByteBuffer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3772,6 +3772,9 @@ <h5>Parameters:</h5>
|

<span class="param-type">string</span>
|

<span class="param-type">!Array.&lt;number></span>



Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebuffer",
"version": "3.0.0",
"version": "3.0.1",
"author": "Daniel Wirtz <dcode@dcode.io>",
"description": "The swiss army knife for binary data in JavaScript.",
"main": "ByteBuffer.js",
Expand All @@ -16,9 +16,6 @@
"long": "~1",
"bufferview": "~1"
},
"optionalDependencies": {
"memcpy": "~0.4"
},
"devDependencies": {
"testjs": "~1",
"metascript": "~0",
Expand Down
4 changes: 2 additions & 2 deletions src/methods/static/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Wraps a buffer or a string. Sets the allocated ByteBuffer's {@link ByteBuffer#offset} to `0` and its
* {@link ByteBuffer#limit} to the length of the wrapped data.
//? if (NODE) {
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
* @param {!ByteBuffer|!Buffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
//? } else {
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string} buffer Anything that can be wrapped
* @param {!ByteBuffer|!ArrayBuffer|!Uint8Array|string|!Array.<number>} buffer Anything that can be wrapped
//? }
* @param {(string|boolean)=} encoding String encoding if `buffer` is a string ("base64", "hex", "binary", defaults to
* "utf8")
Expand Down

0 comments on commit a2dbb75

Please sign in to comment.