Wrapper class for the UA stack structure OpcUa_ByteString.
More...
#include <uabytestring.h>
Inherits OpcUa_ByteString.
Wrapper class for the UA stack structure OpcUa_ByteString.
Derived from OpcUa_ByteString.
UaByteString::UaByteString |
( |
OpcUa_Int32 |
iLength, |
|
|
OpcUa_Byte * |
pData |
|
) |
| |
construction
- Parameters
-
iLength | the length of the data. |
pData | a pointer to the data itself. |
UaByteString::UaByteString |
( |
const UaByteArray & |
other | ) |
|
Append a byte string to the own byte string.
- Parameters
-
other | the byte string to append |
Attach the internal byte string data of the passed byte string to the own byte string.
- Parameters
-
pSrc | the source of this operation. |
This method decodes a BASE64 encoded string and returns the decoded data.
- Parameters
-
pBase64 | [in] The BASE64 string |
rawData | [out] The decoded raw data |
- Returns
- Returns the result code for the operation.
This method encodes the passed ByteString into a BASE64 encoded string.
- Parameters
-
rawData | ByteString to encode |
- Returns
- Returns the encoded string. Must be deleted with delete[].
int UaByteString::base64format |
( |
char ** |
szInput | ) |
|
|
static |
This method formats a string representation of a base64 encoded blob into a format suitable to be passed to UaByteString::base64decode.
- Parameters
-
szInput | pointer to string representation |
- Returns
- Returns the new length of the formated string
void UaByteString::clear |
( |
| ) |
|
Compare two UaByteString variables.
- Parameters
-
- Returns
- true if equal false if not.
const OpcUa_Byte* UaByteString::data |
( |
| ) |
const |
|
inline |
Get the data of the actual variable.
- Returns
- the data of the actual variable.
void UaByteString::detach |
( |
| ) |
|
Detach internal structure from data.
A caller must take ownership of the internal memory before calling detach.
Converts a hexadecimal string representation of a byte string into a UaByteString.
This string should not contain spaces and the string length must be a multiple of 2 (2 chars per byte).
- Parameters
-
src | the source of this operation. |
- Returns
- If an error occurs an empty byte string is returned.
OpcUa_Int32 UaByteString::length |
( |
| ) |
const |
|
inline |
Get the length of the var.
- Returns
- the length of the var.
bool UaByteString::operator!= |
( |
const UaByteString & |
other | ) |
const |
Returns true if other is not equal to this.
- See also
- operator==
- Parameters
-
- Returns
- true if other is not equal to this.
bool UaByteString::operator< |
( |
const UaByteString & |
other | ) |
const |
Is lower than operator.
This is used to sort ByteStrings e.g. to use it as key in map
- Parameters
-
- Returns
- true if lower false if not.
Appends the other byte string.
This method reallocated the internal memory as needed.
- Parameters
-
other | the ByteString to append. |
Assignment operator.
- Parameters
-
other | the ByteString to assign. |
- Returns
- Assignment operator.
bool UaByteString::operator== |
( |
const UaByteString & |
other | ) |
const |
Compare variables if they are similar.
- Parameters
-
other | the char to compare. |
- Returns
- true if not similar false if similar.
bool UaByteString::operator> |
( |
const UaByteString & |
other | ) |
const |
Is greater than operator.
- Parameters
-
- Returns
- true if greater false if not.
void UaByteString::setByteString |
( |
OpcUa_Int32 |
iLength, |
|
|
OpcUa_Byte * |
pData |
|
) |
| |
Set ByteString data.
- Parameters
-
iLength | the length of the data. |
pData | the actual used data. |
UaString UaByteString::toHex |
( |
bool |
bSeparateWithSpace = false | ) |
const |
Converts the byte string into a hex string.
- Parameters
-
bSeparateWithSpace | Separates each byte in the hex string with a space. Per default bSeparateWithSpace=false, you can use bSeparateWithSpace = true for better display. |
- Returns
- a hex string.
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uabase/uabasecpp/uabytestring.h
- D:/work/uasdkcpp/src/uabase/uabasecpp/uabytestring.cpp