mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
internally change name from elasticbuffer to writer
This commit is contained in:
parent
0458e8981f
commit
bf32d9520c
@ -1,10 +1,10 @@
|
||||
var ElasticBuffer = function(size) {
|
||||
var Writer = function(size) {
|
||||
this.size = size || 1024;
|
||||
this.buffer = new Buffer(this.size);
|
||||
this.offset = 0;
|
||||
};
|
||||
|
||||
var p = ElasticBuffer.prototype;
|
||||
var p = Writer.prototype;
|
||||
|
||||
p._remaining = function() {
|
||||
return this.buffer.length - this.offset;
|
||||
@ -71,4 +71,4 @@ p.add = function(otherBuffer) {
|
||||
return this;
|
||||
}
|
||||
|
||||
module.exports = ElasticBuffer;
|
||||
module.exports = Writer;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user