No, I am not a C programmer. So let me ask this question:
I have a buffer
char inbuf; int inbufLen = 512; int inbufFill = 0;
I want to read len bytes from Serial into inbuf, but with an offset of inbufFill. Serial does not offer a method
Serial.readBytes(inbuf, inbufFill, len);
But maybe I can do something like this:?
char virtbuf; *virtbuf = &inbuf[inbufFill]; Serial.readBytes(virtbuf, len);
Of course these 3 lines a wrong, but they hopefully give you a hint what I want to do.