I create a ArrayType('float') then instantiate it with size of 1, when I debug it it has three positions but the length is set to 1.
This results in when I run .toArray on it I only get one back. This might sound correct but for some reason the value I wan't is at idx three and does not get returned.
let testArrayType = ArrayType('int'),
testArray = new testArrayType(1);
console.log(testArray);
the above results in:
ArrayType {buffer: Buffer[4], __length: 1}
0: 0
1: 0
2: 0
__length: 1
Which does not make sense.
I am using electron, if that matters.
I create a ArrayType('float') then instantiate it with size of 1, when I debug it it has three positions but the length is set to 1.
This results in when I run
.toArrayon it I only get one back. This might sound correct but for some reason the value I wan't is at idx three and does not get returned.the above results in:
Which does not make sense.
I am using electron, if that matters.