You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In node Buffer, there is comment: // Use Math.trunc() to convert offset to an integer value that can be larger // than an Int32. Hence, don't use offset | 0 or similar techniques.
In this package, Buffer use ~, can't work with larger than int32 number.
The text was updated successfully, but these errors were encountered:
[1,2,3].slice(1,3)
return[2, 3]
, it's ok.Array.from( Buffer.from([1,2,3]).slice(1,3) )
return[2,3]
, it's ok.Array.from( Buffer.from([1,2,3]).slice(1,Math.pow(2,32)) )
return[]
, it's wrong result.In node
Buffer
, there is comment:// Use Math.trunc() to convert offset to an integer value that can be larger
// than an Int32. Hence, don't use offset | 0 or similar techniques.
In this package,
Buffer
use~
, can't work with larger than int32 number.The text was updated successfully, but these errors were encountered: