OxL Справочник OxL
РусскийEnglish

fn sealBytes

seal for a bytes field; the generated code of an @encrypted field calls it. A failure is a panic.

Example:

oxl✓ проверяется в CI
use std.topic { sealBytes, openBytes }

fn main() io, db {
  let b = sealBytes("Payments", "blob", b"\x01\x02")
  print("{openBytes("Payments", "blob", b)}")
}
Вывод
b"\x01\x02"
pub(api) fn sealBytes(name: str, field: str, v: bytes) -> bytes

С версии. 1.0.0-beta

Параметры

ИмяТип
namestr
fieldstr
vbytes

Возвращает

bytes

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/topic/topic.oxl:806

См. также