encodeHandoff method
Implementation
Uint8List encodeHandoff(RitoBackgroundHandoff handoff) {
final writer = RitoFixedMessageWriter('RITOHOF1');
writer.externalId(handoff.sessionId, 'session id');
writer.externalId(
handoff.expectedVisibleArtifactId,
'expected visible artifact id',
);
writer.externalId(handoff.candidateArtifactId, 'candidate artifact id');
return writer.finish(magic: 'RITOHOF1', expectedBytes: handoffWireBytes);
}