@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class DataInputQueue extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DataInputQueue(Pointer p)
Pointer cast constructor.
|
DataInputQueue(XLinkConnection conn,
BytePointer streamName) |
DataInputQueue(XLinkConnection conn,
BytePointer streamName,
int maxSize,
boolean blocking) |
DataInputQueue(XLinkConnection conn,
String streamName) |
DataInputQueue(XLinkConnection conn,
String streamName,
int maxSize,
boolean blocking) |
| Modifier and Type | Method and Description |
|---|---|
void |
_close()
Closes the queue and the underlying thread
|
boolean |
getBlocking()
Gets current queue behavior when full (maxSize)
|
long |
getMaxDataSize()
Gets maximum queue size.
|
int |
getMaxSize()
Gets queue maximum size
|
BytePointer |
getName()
Gets queues name
|
boolean |
isClosed()
Check whether queue is closed
|
void |
send(ADatatype msg)
Adds a message to the queue, which will be picked up and sent to the device.
|
boolean |
send(ADatatype msg,
Pointer timeout)
Adds message to the queue, which will be picked up and sent to the device.
|
void |
send(RawBuffer rawMsg)
Adds a raw message to the queue, which will be picked up and sent to the device.
|
boolean |
send(RawBuffer rawMsg,
Pointer timeout)
Adds message to the queue, which will be picked up and sent to the device.
|
void |
sendSharedPtr(ADatatype msg)
Adds a message to the queue, which will be picked up and sent to the device.
|
boolean |
sendSharedPtr(ADatatype msg,
Pointer timeout)
Adds message to the queue, which will be picked up and sent to the device.
|
void |
setBlocking(boolean blocking)
Sets queue behavior when full (maxSize)
|
void |
setMaxDataSize(long maxSize)
Sets maximum message size.
|
void |
setMaxSize(int maxSize)
Sets queue maximum size
|
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 DataInputQueue(Pointer p)
Pointer(Pointer).public DataInputQueue(@SharedPtr XLinkConnection conn, @StdString BytePointer streamName, @Cast(value="unsigned int") int maxSize, @Cast(value="bool") boolean blocking)
public DataInputQueue(@SharedPtr XLinkConnection conn, @StdString BytePointer streamName)
public DataInputQueue(@SharedPtr XLinkConnection conn, @StdString String streamName, @Cast(value="unsigned int") int maxSize, @Cast(value="bool") boolean blocking)
public DataInputQueue(@SharedPtr XLinkConnection conn, @StdString String streamName)
public void setMaxDataSize(@Cast(value="std::size_t") long maxSize)
maxSize - Maximum message size to add to queue@Cast(value="std::size_t") public long getMaxDataSize()
public void setBlocking(@Cast(value="bool") boolean blocking)
blocking - Specifies if block or overwrite the oldest message in the queue@Cast(value="bool") public boolean getBlocking()
public void setMaxSize(@Cast(value="unsigned int") int maxSize)
maxSize - Specifies maximum number of messages in the queue@Cast(value="unsigned int") public int getMaxSize()
@StdString public BytePointer getName()
public void send(@SharedPtr RawBuffer rawMsg)
rawMsg - Message to add to the queue@Name(value="send") public void sendSharedPtr(@Const @SharedPtr @ByRef ADatatype msg)
msg - Message to add to the queuepublic void send(@Const @ByRef ADatatype msg)
msg - Message to add to the queue@Cast(value="bool") public boolean send(@SharedPtr RawBuffer rawMsg, @ByVal @Cast(value="std::chrono::milliseconds*") Pointer timeout)
rawMsg - Message to add to the queuetimeout - Maximum duration to block in milliseconds@Cast(value="bool") @Name(value="send") public boolean sendSharedPtr(@Const @SharedPtr @ByRef ADatatype msg, @ByVal @Cast(value="std::chrono::milliseconds*") Pointer timeout)
msg - Message to add to the queuetimeout - Maximum duration to block in milliseconds@Cast(value="bool") public boolean send(@Const @ByRef ADatatype msg, @ByVal @Cast(value="std::chrono::milliseconds*") Pointer timeout)
msg - Message to add to the queuetimeout - Maximum duration to block in millisecondsCopyright © 2021. All rights reserved.