InputStream Class
- Inheritance
-
azure.functions._abc.InputStreamInputStream
Constructor
InputStream(*, data: Union[bytes, azure.functions.meta.Datum], name: Optional[str] = None, uri: Optional[str] = None, length: Optional[int] = None)
Methods
| read |
Return and read up to size bytes. |
| readable |
Return whether object was opened for reading. If False, read() will raise OSError. |
| seekable |
Return whether object supports random access. If False, seek(), tell() and truncate() will raise OSError. This method may need to do a test seek(). |
| writable |
Return whether object was opened for writing. If False, write() will raise OSError. |
read
Return and read up to size bytes.
read(size=- 1) -> bytes
Parameters
- size
- int
The number of bytes to read. If the argument is omitted,
None, or negative, data is read and returned until
EOF is reached.
Returns
Bytes read from the input stream.
readable
Return whether object was opened for reading.
If False, read() will raise OSError.
readable() -> bool
seekable
Return whether object supports random access.
If False, seek(), tell() and truncate() will raise OSError. This method may need to do a test seek().
seekable() -> bool
writable
Return whether object was opened for writing.
If False, write() will raise OSError.
writable() -> bool
Attributes
length
The size of the blob in bytes.
name
The name of the blob.
uri
The blob's primary location URI.
Feedback
Submit and view feedback for