@Namespace(value="dmlc") @NoOffset @Properties(inherit=tvm_runtime.class) public class istream extends Pointer
Stream *fs = Stream::Create("hdfs:///test.txt", "r");
dmlc::istream is(fs);
is >> mydata;
delete fs;
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
istream(Pointer p)
Pointer cast constructor.
|
istream(Stream stream) |
istream(Stream stream,
long buffer_size)
\brief construct std::ostream type
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytes_read() |
void |
set_stream(Stream stream)
\brief set internal stream to be stream, reset states
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic istream(Pointer p)
Pointer(Pointer).public istream(Stream stream, @Cast(value="size_t") long buffer_size)
stream - the Stream output to be usedbuffer_size - internal buffer sizepublic istream(Stream stream)
Copyright © 2021. All rights reserved.