readEncrypted method
dynamic
readEncrypted(
- RiftCipher cipher
inherited
Not part of public API
Implementation
@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
dynamic readEncrypted(RiftCipher cipher) {
final inpLength = availableBytes;
final out = Uint8List(inpLength);
final outLength = cipher.decrypt(_buffer, _offset, inpLength, out, 0);
_offset += inpLength;
final valueReader = BinaryReaderImpl(out, _typeRegistry, outLength);
return valueReader.read();
}