@Namespace(value="dmlc::io") @Properties(inherit=tvm_runtime.class) public class FileSystem extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
FileSystem(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
GetPathInfo(URI path)
\brief get information about a path
|
void |
ListDirectory(URI path,
FileInfo out_list)
\brief list files in a directory
|
void |
ListDirectoryRecursive(URI path,
FileInfo out_list)
\brief list files in a directory recursively using ListDirectory
|
Stream |
Open(URI path,
BytePointer flag) |
Stream |
Open(URI path,
BytePointer flag,
boolean allow_null)
\brief open a stream
|
Stream |
Open(URI path,
String flag) |
Stream |
Open(URI path,
String flag,
boolean allow_null) |
SeekStream |
OpenForRead(URI path) |
SeekStream |
OpenForRead(URI path,
boolean allow_null)
\brief open a seekable stream for read
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic FileSystem(Pointer p)
Pointer(Pointer).@ByVal public FileInfo GetPathInfo(@Const @ByRef URI path)
path - the path to the filepublic void ListDirectory(@Const @ByRef URI path, @StdVector FileInfo out_list)
path - to the fileout_list - the output information about the filespublic void ListDirectoryRecursive(@Const @ByRef URI path, @StdVector FileInfo out_list)
path - to the fileout_list - the output information about the filespublic Stream Open(@Const @ByRef URI path, @Cast(value="const char*") BytePointer flag, @Cast(value="bool") boolean allow_null)
path - path to fileflag - can be "w", "r", "aallow_null - whether NULL can be returned, or directly report errorpublic Stream Open(@Const @ByRef URI path, String flag, @Cast(value="bool") boolean allow_null)
public SeekStream OpenForRead(@Const @ByRef URI path, @Cast(value="bool") boolean allow_null)
path - the path to the fileallow_null - whether NULL can be returned, or directly report errorpublic SeekStream OpenForRead(@Const @ByRef URI path)
Copyright © 2022. All rights reserved.