@Namespace(value="caffe2::serialize") @NoOffset @Properties(inherit=torch.class) public class IStreamAdapter extends ReadAdapterInterface
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IStreamAdapter(Pointer istream) |
Modifier and Type | Method and Description |
---|---|
long |
read(long pos,
Pointer buf,
long n) |
long |
read(long pos,
Pointer buf,
long n,
BytePointer what) |
long |
read(long pos,
Pointer buf,
long n,
String what) |
long |
size() |
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, zero
@Cast(value="size_t") public long size()
size
in class ReadAdapterInterface
@Cast(value="size_t") public long read(@Cast(value="uint64_t") long pos, Pointer buf, @Cast(value="size_t") long n, @Cast(value="const char*") BytePointer what)
read
in class ReadAdapterInterface
@Cast(value="size_t") public long read(@Cast(value="uint64_t") long pos, Pointer buf, @Cast(value="size_t") long n)
read
in class ReadAdapterInterface
Copyright © 2024. All rights reserved.