Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/util/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ function equals(a, b) {
return true;
}

function propBuffer(prop){
return new Buffer(prop);
// return newBuffer;
}

module.exports = {
/**
* Fill a buffer with a value.
Expand Down Expand Up @@ -84,6 +89,8 @@ module.exports = {

equals: equals,
equal: equals,
propBuffer: propBuffer,


/**
* Transforms a number from 0 to 255 into a Buffer of size 1 with that value
Expand Down