StringBuffer Class¶
Namespace: id3.Devices
Definition¶
A utility class for managing dynamic strings, allowing for the storage, manipulation, and retrieval of string data.
It serves as a wrapper around traditional string types, offering additional control over string operations and memory management.
class StringBuffer
class StringBuffer implements Finalizable
public partial class StringBuffer
public class StringBuffer implements AutoCloseable, Serializable
typedef struct id3DevicesStringBuffer *ID3_DEVICES_STRING_BUFFER;
Usage¶
stringBufferInstance = StringBuffer()
# ...
Explicit destruction
# ...
del stringBufferInstance
final stringBufferInstance = sdk.StringBuffer();
// ...
Explicit destruction
// ...
stringBufferInstance.dispose()
using (var stringBufferInstance = new StringBuffer())
{
// ...
}
Explicit destruction
var stringBufferInstance = new StringBuffer()
// ...
stringBufferInstance.Dispose()
try (StringBuffer stringBufferInstance = new StringBuffer()) {
// ...
}
Explicit destruction
StringBuffer stringBufferInstance = new StringBuffer();
// ...
stringBufferInstance.close();
ID3_DEVICES_STRING_BUFFER hStringBuffer{};
int err = id3DevicesStringBuffer_Initialize(&hStringBuffer);
if (err == ID3_SUCCESS) {
// ...
id3DevicesStringBuffer_Dispose(&hStringBuffer);
}
Properties¶
Name |
Type |
Description |
---|---|---|
string |
Stores the actual string data |
Methods¶
Name |
Description |
---|---|
Empties the string buffer, effectively resetting its content to an empty string |
|
(C++) Retrieves a pointer to the internal string representation, allowing for low-level operations or optimizations specific to C++ string handling. |