Package ai.rapids.cudf
Interface HostBufferProvider
- All Superinterfaces:
AutoCloseable
Provides a set of APIs for providing host buffers to be read.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Indicates that no more buffers will be supplied.long
readInto
(HostMemoryBuffer buffer, long len) Place data into the given buffer.
-
Method Details
-
readInto
Place data into the given buffer.- Parameters:
buffer
- the buffer to put data into.len
- the maximum amount of data to put into buffer. Less is okay if at EOF.- Returns:
- the actual amount of data put into the buffer.
-
close
default void close()Indicates that no more buffers will be supplied.- Specified by:
close
in interfaceAutoCloseable
-