LSLStreamInfo.fromStreamInfoAddr constructor
LSLStreamInfo.fromStreamInfoAddr(
- int address
Creates a new LSLStreamInfo object from an existing stream info address. / When constructing inlets, this creates the LSLStreamInfo object based on an existing stream info address, which can be retrieved from a stream resolver.
Implementation
factory LSLStreamInfo.fromStreamInfoAddr(int address) {
/// @TODO: Validate memory management - what happens to THIS pointer?
final streamInfo = lsl_streaminfo.fromAddress(address);
if (streamInfo.isNullPointer) {
throw LSLException('Invalid stream info address');
}
return LSLStreamInfo.fromStreamInfo(streamInfo);
}