LSLStreamInfoWithMetadata.fromStreamInfoAddr constructor

LSLStreamInfoWithMetadata.fromStreamInfoAddr(
  1. int address
)

Implementation

factory LSLStreamInfoWithMetadata.fromStreamInfoAddr(int address) {
  final streamInfo = lsl_streaminfo.fromAddress(address);
  if (streamInfo.isNullPointer) {
    throw LSLException('Invalid stream info address');
  }
  return LSLStreamInfoWithMetadata.fromStreamInfo(streamInfo);
}