@Namespace(value="dai") @Properties(inherit=depthai.class) public class Buffer extends ADatatype
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Buffer()
Creates Buffer message
|
Buffer(long size)
Native array allocator.
|
Buffer(Pointer p)
Pointer cast constructor.
|
Buffer(RawBuffer ptr) |
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
getData() |
Buffer |
getPointer(long i) |
Buffer |
position(long position) |
void |
setData(byte[] data) |
void |
setData(ByteBuffer data) |
void |
setData(BytePointer data) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Buffer(Pointer p)
Pointer(Pointer).public Buffer(long size)
Pointer.position(long).public Buffer()
public Buffer(@SharedPtr RawBuffer ptr)
public Buffer getPointer(long i)
getPointer in class Pointer@Cast(value="std::uint8_t*") @StdVector public BytePointer getData()
public void setData(@Cast(value="std::uint8_t*") @StdVector BytePointer data)
data - Copies data to internal bufferpublic void setData(@Cast(value="std::uint8_t*") @StdVector ByteBuffer data)
public void setData(@Cast(value="std::uint8_t*") @StdVector byte[] data)
Copyright © 2021. All rights reserved.