| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.cuda.BufferWriter.html | [Back] [Original] |
Bases: NativeFile
File interface for writing to CUDA buffers.
By default writes are unbuffered. Use set_buffer_size to enable buffering.
Methods
|
|
|
|
|
Read this file completely to a local path or destination stream. |
|
NOT IMPLEMENTED |
|
Flush the buffer stream |
|
Return an input stream that reads a file segment independent of the state of the file. |
|
|
|
Return file metadata |
|
Read and return up to n bytes. |
|
Read and return up to n bytes. |
|
Read indicated number of bytes at offset from the file |
|
Read from buffer. |
|
|
|
|
|
Read into the supplied buffer |
|
NOT IMPLEMENTED. |
|
NOT IMPLEMENTED. |
|
|
|
|
|
Return file size |
|
Return current stream position |
|
NOT IMPLEMENTED |
|
Write from a source stream to this file. |
|
|
|
Write data to the file. |
|
Write data to buffer starting from position. |
|
Write lines to the file. |
Attributes
Returns size of host (CPU) buffer, 0 for unbuffered |
|
The file mode. |
|
Returns number of bytes buffered on host |
Returns size of host (CPU) buffer, 0 for unbuffered
Read this file completely to a local path or destination stream.
This method first seeks to the beginning of the file.
NOT IMPLEMENTED
Flush the buffer stream
Return an input stream that reads a file segment independent of the state of the file.
Allows reading portions of a random access file as an input stream without interfering with each other.
NativeFileReturn file metadata
The file mode. Currently instances of NativeFile may support:
rb: binary read
wb: binary write
rb+: binary read and write
ab: binary append
Returns number of bytes buffered on host
Read and return up to n bytes.
If nbytes is None, then the entire remaining file contents are read.
Read and return up to n bytes.
Unlike read(), if nbytes is None then a chunk is read, not the entire file.
Read indicated number of bytes at offset from the file
Read from buffer.
int, optionalmaximum number of bytes read
Read into the supplied buffer
A writable buffer object (such as a bytearray).
intnumber of bytes written
NOT IMPLEMENTED. Read and return a line of bytes from the file.
If size is specified, read at most size bytes.
Line terminator is always bn.
intmaximum number of bytes read
NOT IMPLEMENTED. Read lines of the file
intmaximum number of bytes read until we stop
Return file size
Return current stream position
NOT IMPLEMENTED
Write from a source stream to this file.
Source stream to pipe to this file.
int, optionalThe buffer size to use for data transfers.
Write data to the file.
exporter of buffer protocolintnbytes: number of bytes written
Write data to buffer starting from position.
intSpecify device buffer position where the data will be written.
array-likeSpecify data, the data instance must implement buffer protocol.
| Web Proxy Viewer | New URL | Original Page |