@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class Version extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Version(ByteBuffer v) |
Version(BytePointer v)
Construct Version from string
|
Version(int major,
int minor,
int patch)
Construct Version major, minor and patch numbers
|
Version(int major,
int minor,
int patch,
ByteBuffer buildInfo) |
Version(int major,
int minor,
int patch,
BytePointer buildInfo)
Construct Version major, minor and patch numbers with buildInfo
|
Version(int major,
int minor,
int patch,
String buildInfo) |
Version(Pointer p)
Pointer cast constructor.
|
Version(String v) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Version other) |
BytePointer |
getBuildInfo()
Get build info
|
Version |
getSemver()
Retrieves semver version (no build information)
|
boolean |
greaterThan(Version rhs) |
boolean |
greaterThanEquals(Version rhs) |
boolean |
lessThan(Version other) |
boolean |
lessThanEquals(Version rhs) |
boolean |
notEquals(Version rhs) |
String |
toString()
Convert Version to string
|
BytePointer |
toStringSemver()
Convert Version to semver (no build information) string
|
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, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Version(Pointer p)
Pointer(Pointer).public Version(@StdString BytePointer v)
public Version(@StdString ByteBuffer v)
public Version(@StdString String v)
public Version(@Cast(value="unsigned") int major, @Cast(value="unsigned") int minor, @Cast(value="unsigned") int patch)
public Version(@Cast(value="unsigned") int major, @Cast(value="unsigned") int minor, @Cast(value="unsigned") int patch, @StdString BytePointer buildInfo)
public Version(@Cast(value="unsigned") int major, @Cast(value="unsigned") int minor, @Cast(value="unsigned") int patch, @StdString ByteBuffer buildInfo)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef Version other)
@Cast(value="bool") @Name(value="operator <") public boolean lessThan(@Const @ByRef Version other)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef Version rhs)
@Cast(value="bool") @Name(value="operator >") public boolean greaterThan(@Const @ByRef Version rhs)
@Cast(value="bool") @Name(value="operator <=") public boolean lessThanEquals(@Const @ByRef Version rhs)
@Cast(value="bool") @Name(value="operator >=") public boolean greaterThanEquals(@Const @ByRef Version rhs)
@StdString public String toString()
@StdString public BytePointer toStringSemver()
@StdString public BytePointer getBuildInfo()
Copyright © 2023. All rights reserved.