Closed MiyamuraMiyako closed 6 years ago
Can you elaborate on why this should be part of the package?
If the caller wants to discard the first few bytes, then the caller can do that. Add this point I don't understand why this should be part of the package.
Not to discard the header data, this function is read multiple and sequentially into the slice.
example:
I want this function because of the pcomm library in windows: PCOMM.H Line105
May be my solution not perfect.
If I understand the problem correctly, instead of doing Read2(buf, start, length)
, you can do Read(buf[start:start+length])
Oh, you are right. It seems this pr can be closed
add Read2 function to each platform.