DecryptedMessageLayer017.deserialize constructor
DecryptedMessageLayer017.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory DecryptedMessageLayer017.deserialize(BinaryReader reader) {
// Read [DecryptedMessageLayer017] fields.
final randomBytes = reader.readBytes();
final layer = reader.readInt32();
final inSeqNo = reader.readInt32();
final outSeqNo = reader.readInt32();
final message = reader.readObject() as DecryptedMessageBase;
// Construct [DecryptedMessageLayer017] object.
final returnValue = DecryptedMessageLayer017(
randomBytes: randomBytes,
layer: layer,
inSeqNo: inSeqNo,
outSeqNo: outSeqNo,
message: message,
);
// Now return the deserialized [DecryptedMessageLayer017].
return returnValue;
}