Ciphertext.fromBytes constructor
Loads a Ciphertext from a serialized binary format.
Implementation
Ciphertext.fromBytes(Afhe fhe, Uint8List bytes) {
final Pointer<Uint8> pointer = malloc.allocate<Uint8>(bytes.length);
// Copy the bytes to the allocated memory
final Uint8List pointerContent = pointer.asTypedList(bytes.length);
pointerContent.setAll(0, bytes);
obj = _c_load_ciphertext(fhe.library, pointer, bytes.length);
}