Get bytes from the media. Args: begin: int, offset from beginning of file. length: int, number of bytes to read, starting at begin. Returns: A string of bytes read. May be shorter than length if EOF was reached first.
(self, begin, end)
| 342 | return False |
| 343 | |
| 344 | def getbytes(self, begin, end): |
| 345 | """Get bytes from the media. |
| 346 | |
| 347 | Args: |
| 348 | begin: int, offset from beginning of file. |
| 349 | length: int, number of bytes to read, starting at begin. |
| 350 | |
| 351 | Returns: |
| 352 | A string of bytes read. May be shorter than length if EOF was reached |
| 353 | first. |
| 354 | """ |
| 355 | raise NotImplementedError() |
| 356 | |
| 357 | def has_stream(self): |
| 358 | """Does the underlying upload support a streaming interface. |
no outgoing calls
no test coverage detected