CVFileStorage - matt-s-clark/godot-gdextension-opencv GitHub Wiki

isOpened

Prototype: bool isOpened() const

Checks whether the file is opened.

open

Prototype: bool open(String filename, int flags, Dictionary additional_parameters)

Opens a file. Refer to the const FileStorageMode.

  • Additional parameters: encoding: String

read

Prototype: Variant read(const String name)

Returns the specified element.

release

Prototype: void release()

Closes the file and releases all the memory buffers.

write

Prototype: void write(const String name, Variant val)

Writes data to an specific node. Currently supports integers, floats, booleans, strings and mats.