io.BytesIO.seek¶
-
BytesIO.seek(pos[, whence]) → int. Change stream position.¶ - Seek to byte offset pos relative to position indicated by whence:
- 0 Start of stream (the default). pos should be >= 0; 1 Current position - pos may be negative; 2 End of stream - pos usually negative.
Returns the new absolute position.