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
Using readBuffer works fine, in that case bufferGetn shows me that the contents of the buffer have been set (readBuffer allocates it's own buffer, though).
What am I doing wrong? Is this the expected result?
The text was updated successfully, but these errors were encountered:
I am attempting to use
bufferSetn
to set samples into a pre-allocated buffer, but it's not working for me. I allocate the buffer like this:await server.buffer(10);
Then I try to set it like this:
But when I subsequently use
bufferGetn
to interrogate the buffer contents it shows it to be still empty:console.log(await server.callAndResponse(sc.server.msg.bufferGetn(0, 0, 10)));
Using
readBuffer
works fine, in that casebufferGetn
shows me that the contents of the buffer have been set (readBuffer
allocates it's own buffer, though).What am I doing wrong? Is this the expected result?
The text was updated successfully, but these errors were encountered: