fromByteArrayStream static method
Reads objects from ByteArrayInputStream and stores them in map. @param in ByteArrayInputStream to be used @return the deserialized Storable String @throws IOException if value cannot be read
Implementation
static Future<PluginInformation> fromByteArrayStream(ByteStream in_) async {
SerializerHelper.castTest('PluginInformation', serialVersionUID,
await SerializerHelper.readLong(in_), 1);
String id = await SerializerHelper.readString(in_) ?? '';
String executable = await SerializerHelper.readString(in_) ?? '';
int port = await SerializerHelper.readInt(in_);
Declaration declaration = await SerializerHelper.readInt(in_) == 0
? Declaration.doNotShareData
: Declaration.doShareData;
CommunicationSecret secret =
await CommunicationSecret.fromByteArrayStream(in_);
SerializerHelper.castTest('PluginInformation', serialVersionUID,
await SerializerHelper.readLong(in_), 1);
return PluginInformation(id, executable, port, declaration, secret);
}