diff --git a/lib/buffer.js b/lib/buffer.js index e9fb033f93..85c0bfece8 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -78,4 +78,12 @@ Buffer.prototype.write = function (string, offset, encoding) { default: throw new Error('Unknown encoding'); } -}; \ No newline at end of file +}; + +Buffer.prototype.get = function (index) { + return this[index]; +}; + +Buffer.prototype.set = function (index, value) { + return this[index] = value; +};