@Namespace(value="caffe2") @NoOffset @Properties(inherit=torch.class) public class Blob extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Blob()
Initializes an empty Blob.
|
Blob(Blob other) |
Blob(long size)
Native array allocator.
|
Blob(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Blob |
getPointer(long i) |
Pointer |
GetRaw()
\brief Gets the const reference of the stored object.
|
TypeMeta |
meta()
Returns the meta info of the blob.
|
Blob |
position(long position) |
void |
Reset()
Resets the Blob to an empty one.
|
Pointer |
ShareExternal(Pointer allocated,
TypeMeta meta)
Sets the underlying object to the allocated one, but does not take over
the ownership of the passed in pointer.
|
void |
swap(Blob rhs)
\brief Swaps the underlying storage of two blobs.
|
BytePointer |
TypeName()
Returns a printable typename of the blob.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Blob(Pointer p)
Pointer(Pointer)
.public Blob(long size)
Pointer.position(long)
.public Blob()
public Blob getPointer(long i)
getPointer
in class Pointer
@Const @ByVal @NoException(value=true) public TypeMeta meta()
@StringView @NoException(value=true) public BytePointer TypeName()
@NoException(value=true) public Pointer GetRaw()
public Pointer ShareExternal(Pointer allocated, @Const @ByVal TypeMeta meta)
public void Reset()
Copyright © 2024. All rights reserved.