in case of insufficient bytes in stream, will return array of correct length but missing bytes at end.
readCount is the number of elements that were actually read (this can be < length if stream doesnt have enough bytes)
n is the number of bytes to read for length of array, default(0) is size_t.sizeof
Reads an array.
in case of insufficient bytes in stream, will return array of correct length but missing bytes at end. readCount is the number of elements that were actually read (this can be < length if stream doesnt have enough bytes) n is the number of bytes to read for length of array, default(0) is size_t.sizeof