set_length: Set the effective length of a plaintext

View source: R/plaintext.R

set_lengthR Documentation

Set the effective length of a plaintext

Description

Set the effective length of a plaintext

Usage

set_length(pt, len)

Arguments

pt

A Plaintext

len

Integer length

Value

Invisibly, the pt plaintext that was passed in. Called for its side effect: the plaintext is truncated in place so that the accessors report only the first len slots, which is how the padding introduced by encoding is trimmed after decryption.


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.