public final class CuFileWriteHandle extends Object
Constructor and Description |
---|
CuFileWriteHandle(String path)
Construct a writer using the specified file path.
|
Modifier and Type | Method and Description |
---|---|
long |
append(CuFileBuffer buffer,
long length)
Append the specified cuFile buffer to the file.
|
void |
close() |
protected long |
getPointer() |
void |
write(CuFileBuffer buffer,
long length,
long fileOffset)
Write the specified cuFile buffer into the file.
|
public CuFileWriteHandle(String path)
path
- The file path for writing.public void write(CuFileBuffer buffer, long length, long fileOffset)
buffer
- The cuFile buffer to write from.length
- The number of bytes to write.fileOffset
- The starting file offset from which to write.public long append(CuFileBuffer buffer, long length)
buffer
- The cuFile buffer to append from.length
- The number of bytes to append.public void close()
close
in interface AutoCloseable
protected long getPointer()
Copyright © 2024. All rights reserved.