[Pkg-javascript-commits] [node-sha.js] 100/237: delete fakebuffer.js

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit e42d66cf5190a8a0c45e19231ddcd2ef983f1380
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Wed Jan 15 13:12:07 2014 +0700

    delete fakebuffer.js
---
 fakebuffer.js | 49 -------------------------------------------------
 1 file changed, 49 deletions(-)

diff --git a/fakebuffer.js b/fakebuffer.js
deleted file mode 100644
index 7e9015e..0000000
--- a/fakebuffer.js
+++ /dev/null
@@ -1,49 +0,0 @@
-
-//return module.exports = require('buffer').Buffer
-
-
-var BE = false
-var LE = true
-
-module.exports = function (len) {
-
-  var dv = new DataView(new ArrayBuffer(len))
-
-  dv.writeUInt32BE = function (value, i) {
-    return dv.setUint32(i, value, BE)
-  }
-  dv.writeUInt32LE = function (value, i) {
-    return dv.setUint32(i, value, LE)
-  }
-  dv.writeInt32BE = function (value, i) {
-    return dv.setInt32(i, value, BE)
-  }
-  dv.writeInt32LE = function (value, i) {
-    return dv.setInt32(i, value, LE)
-  }
-
-  dv.readUInt32BE = function (i) {
-    return dv.getUint32(i, BE)
-  }
-  dv.readUInt32LE = function (i) {
-    return dv.getUint32(i, LE)
-  }
-
-  dv.readInt32BE = function (i) {
-    return dv.getInt32(i, BE)
-  }
-  dv.readInt32LE = function (i) {
-    return dv.getInt32(i, LE)
-  }
-
-  dv.isBuffer = function (e) {
-    return e instanceof DataView && e.writeUInt32BE
-  }
-
-  dv.__defineGetter__('length', function () {
-    return dv.byteLength
-  })
-
-  return dv
-
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list