mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
changing how buffers are written
This commit is contained in:
parent
8cb44e3cf3
commit
1f63d84dee
@ -19,10 +19,10 @@ BufferList.prototype.getByteLength = function(initial) {
|
||||
|
||||
BufferList.prototype.addInt32 = function(val, first) {
|
||||
return this.add(Buffer([
|
||||
(val >>> 24),
|
||||
(val >>> 16),
|
||||
(val >>> 8),
|
||||
(val >>> 0)
|
||||
(val >>> 24 & 0xFF),
|
||||
(val >>> 16 & 0xFF),
|
||||
(val >>> 8 & 0xFF),
|
||||
(val >>> 0 & 0xFF)
|
||||
]),first);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user