readKey method
dynamic
readKey()
inherited
Not part of public API
Implementation
dynamic readKey() {
final keyType = readByte();
if (keyType == FrameKeyType.uintT) {
return readUint32();
} else if (keyType == FrameKeyType.utf8StringT) {
final byteCount = readByte();
return BinaryReader.utf8Decoder.convert(viewBytes(byteCount));
} else {
throw RiftError('Unsupported key type. Frame might be corrupted.');
}
}