Skip to content

FileStorage_Mode

Core and matricesclassOpenCV 5.0.0
import { FileStorage_Mode } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSFileStorage_Mode
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

file storage mode

Constructors and members

static READ

value, open the file for reading

READ: FileStorage_ModeValue<0>,

static WRITE

flag, enable both WRITE and BASE64

WRITE: FileStorage_ModeValue<1>,

static APPEND

value, open the file for appending

APPEND: FileStorage_ModeValue<2>,

static MEMORY

flag, read data from source or write data to the internal buffer (which is

MEMORY: FileStorage_ModeValue<4>,

static FORMAT_MASK

mask for format flags

FORMAT_MASK: FileStorage_ModeValue<56>,

static FORMAT_AUTO

flag, auto format

FORMAT_AUTO: FileStorage_ModeValue<0>,

static FORMAT_XML

flag, XML format

FORMAT_XML: FileStorage_ModeValue<8>,

static FORMAT_YAML

flag, YAML format

FORMAT_YAML: FileStorage_ModeValue<16>,

static FORMAT_JSON

flag, JSON format

FORMAT_JSON: FileStorage_ModeValue<24>,

static FORMAT_YAML_1_0

flag, Legacy YAML 1.0 format (strict headers, booleans as ints)

FORMAT_YAML_1_0: FileStorage_ModeValue<32>,

static BASE64

flag, enable both WRITE and BASE64

BASE64: FileStorage_ModeValue<64>,

static WRITE_BASE64

flag, enable both WRITE and BASE64

WRITE_BASE64: FileStorage_ModeValue<65>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.