transaction: simplify toBuffer offset management
This commit is contained in:
parent
f7b2fdfe60
commit
3bff2c63af
2 changed files with 5 additions and 19 deletions
|
@ -94,6 +94,7 @@ function writeUInt64LE (buffer, value, offset) {
|
|||
|
||||
buffer.writeInt32LE(value & -1, offset)
|
||||
buffer.writeUInt32LE(Math.floor(value / 0x100000000), offset + 4)
|
||||
return offset + 8
|
||||
}
|
||||
|
||||
// TODO: remove in 4.0.0?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue