Constructor
(private) new LongLongBuffer(sizeInLongs)
Constructs LongArrBuffer object
Parameters:
Name | Type | Description |
---|---|---|
sizeInLongs |
Number | size of long array buffer - number of long elements in the array |
- Source:
Methods
(private) _byteArr2LongArr()
Converts byte array representation into internal 64bit long array representation.
- Source:
(private) _byteArr2LongArr()
Converts byte array representation into internal 64bit long array representation.
- Source:
(private) _long2ByteArr(longValue) → {Array}
Converts single long value into array of bytes.
Parameters:
Name | Type | Description |
---|---|---|
longValue |
Number | long number to be converted into byte array |
- Source:
Returns:
- converted number
- Type
- Array
(private) _long2ByteArr(longValue) → {Array}
Converts single long value into array of bytes.
Parameters:
Name | Type | Description |
---|---|---|
longValue |
Number | long number to be converted into byte array |
- Source:
Returns:
- converted number
- Type
- Array
(private) _longArr2ByteArr()
Converts internal long array representation into byte array representation.
- Source:
(private) _longArr2ByteArr()
Converts internal long array representation into byte array representation.
- Source:
copyBytesFrom(srcPos, dst, dstPos, len)
Copies bytes subarray from the long array buffer
Parameters:
Name | Type | Description |
---|---|---|
srcPos |
Integer | location of long array buffer to copy from (indexed in bytes) |
dst |
Array | destination array to copy data to |
dstPos |
Integer | start index of destination array |
len |
Integer | length of data to be copied (in bytes) |
- Source:
copyBytesFrom(srcPos, dst, dstPos, len)
Copies bytes subarray from the long array buffer
Parameters:
Name | Type | Description |
---|---|---|
srcPos |
Integer | location of long array buffer to copy from (indexed in bytes) |
dst |
Array | destination array to copy data to |
dstPos |
Integer | start index of destination array |
len |
Integer | length of data to be copied (in bytes) |
- Source:
copyBytesTo(src, srcPos, dstPos, len)
Copies bytes array into long array buffer.
Parameters:
Name | Type | Description |
---|---|---|
src |
Array | source array to copy from |
srcPos |
Integer | souce location to start copy from (in bytes) |
dstPos |
Integer | destination location (in bytes) of buffer to copy data to |
len |
Integer | length of data to be copied (in bytes) |
- Source:
copyBytesTo(src, srcPos, dstPos, len)
Copies bytes array into long array buffer.
Parameters:
Name | Type | Description |
---|---|---|
src |
Array | source array to copy from |
srcPos |
Integer | souce location to start copy from (in bytes) |
dstPos |
Integer | destination location (in bytes) of buffer to copy data to |
len |
Integer | length of data to be copied (in bytes) |
- Source:
notifyLongUpdated()
Notifies, that long array content has been updated.
If you changed 64 bit long data accessing longArr object property,
this methods needs to be called to ensure internal integrity between
byte and 64-bit long representation.
- Source:
notifyLongUpdated()
Notifies, that long array content has been updated.
If you changed 64 bit long data accessing longArr object property,
this methods needs to be called to ensure internal integrity between
byte and 64-bit long representation.
- Source:
setByte(bytePos, byteValue)
Sets value of particular byte in the buffer
Parameters:
Name | Type | Description |
---|---|---|
bytePos |
Integer | location of buffer to be change (indexed in bytes) |
byteValue |
Integer | value to be set |
- Source:
setByte(bytePos, byteValue)
Sets value of particular byte in the buffer
Parameters:
Name | Type | Description |
---|---|---|
bytePos |
Integer | location of buffer to be change (indexed in bytes) |
byteValue |
Integer | value to be set |
- Source:
setLongAsBytes(pos, longValue)
Sets long (32 bit) value inside buffer. Four bytes starting from pos location will be set.
Parameters:
Name | Type | Description |
---|---|---|
pos |
Number | start location of 32-bit long value to be changed (indexed in bytes) |
longValue |
Number | 32-bit long value to be set |
- Source:
setLongAsBytes(pos, longValue)
Sets long (32 bit) value inside buffer. Four bytes starting from pos location will be set.
Parameters:
Name | Type | Description |
---|---|---|
pos |
Number | start location of 32-bit long value to be changed (indexed in bytes) |
longValue |
Number | 32-bit long value to be set |
- Source:
zeroAll()
Zeroes buffer.
- Source:
zeroAll()
Zeroes buffer.
- Source:
zeroBytes(startPos, len)
Zeroes range of bytes inside buffer.
Parameters:
Name | Type | Description |
---|---|---|
startPos |
Integer | location of first byte to be zeroed |
len |
Integer | length of bytes to be zeroed |
- Source:
zeroBytes(startPos, len)
Zeroes range of bytes inside buffer.
Parameters:
Name | Type | Description |
---|---|---|
startPos |
Integer | location of first byte to be zeroed |
len |
Integer | length of bytes to be zeroed |
- Source: