OID

Fixed-capacity OID with inline storage.

Members

Functions

isPrefixOf
bool isPrefixOf(OID other)

True when this OID is a proper prefix of other.

isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(OID rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(OID rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
oid opIndex(size_t i)

Returns 0 for out-of-bounds indices.

ptr
inout(oid)* ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
int toString(char[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromSlice
OID fromSlice(const(oid)[] src)

Truncates silently to MAX_OID_LEN.

fromString
OID fromString(const(char)* str)

Returns invalid OID (length == 0) on failure.

fromString
OID fromString(string s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
oid[MAX_OID_LEN] data;
Undocumented in source.
length
size_t length;
Undocumented in source.

Meta