CuFileWriteHandle#

public final class CuFileWriteHandle extends CuFileHandle#

Represents a cuFile file handle for reading.

Constructor Summary

CuFileWriteHandle(String path)

Construct a writer using the specified file path.

Method Summary

append(CuFileBuffer buffer, long length)

Append the specified cuFile buffer to the file.

close()

getPointer()

write(CuFileBuffer buffer, long length, long fileOffset)

Write the specified cuFile buffer into the file.

Constructors

public CuFileWriteHandle(String path)#

Construct a writer using the specified file path.

Parameters:

path – The file path for writing.

Methods

public void write(CuFileBuffer buffer, long length, long fileOffset)#

Write the specified cuFile buffer into the file.

Parameters:
  • 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)#

Append the specified cuFile buffer to the file.

Parameters:
  • buffer – The cuFile buffer to append from.

  • length – The number of bytes to append.

Returns:

The file offset from which the buffer was appended.

public void close()#

Protected Methods

protected long getPointer()#