Hello,
I am in need for a member similar to
for Short values rather than bytes.
The RandomAccessFile object has both WriteByte and WriteBytes to write a single byte or a buffer respectively.
What I'd like is a sort of WriteShorts member which does the same work as the WriteBytes but using an array of Short instead of Byte.
I have tried the WriteShort member in a FOR loop but the code is needed in a situation where the timing and speed are important and the FOR loop seems to take ages to complete.
Any hints?
Thanks in advance.
steve
I am in need for a member similar to
B4X:
WriteBytes (Buffer() As Byte, StartOffset As Int, Length As Int, Position As Long) As Int
for Short values rather than bytes.
The RandomAccessFile object has both WriteByte and WriteBytes to write a single byte or a buffer respectively.
What I'd like is a sort of WriteShorts member which does the same work as the WriteBytes but using an array of Short instead of Byte.
I have tried the WriteShort member in a FOR loop but the code is needed in a situation where the timing and speed are important and the FOR loop seems to take ages to complete.
Any hints?
Thanks in advance.
steve