@Namespace(value="dmlc") @NoOffset @Properties(inherit=tvm_runtime.class) public class ostream extends Pointer
Stream *fs = Stream::Create("hdfs:///test.txt", "w");
dmlc::ostream os(fs);
os << "hello world" << std::endl;
delete fs;
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ostream(Pointer p)
Pointer cast constructor.
|
ostream(Stream stream) |
ostream(Stream stream,
long buffer_size)
\brief construct std::ostream type
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytes_written() |
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, 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 ostream(Pointer p)
Pointer(Pointer).public ostream(Stream stream, @Cast(value="size_t") long buffer_size)
stream - the Stream output to be usedbuffer_size - internal streambuf sizepublic ostream(Stream stream)
Copyright © 2024. All rights reserved.