MemoryMode
Description:
[ CCode ( cname = "hb_memory_mode_t" , cprefix = "HB_MEMORY_MODE_" , type_id = "hb_gobject_memory_mode_get_type ()" ) ]
[ GIR ( name = "memory_mode_t" ) ]
public enum MemoryMode
[ GIR ( name = "memory_mode_t" ) ]
public enum MemoryMode
Data type holding the memory modes available to client programs.
Regarding these various memory-modes:
- In no case shall the HarfBuzz client modify memory that is passed to HarfBuzz in a blob. If there is any such possibility,
HB_MEMORY_MODE_DUPLICATEshould be used such that HarfBuzz makes a copy immediately, - Use
HB_MEMORY_MODE_READONLYotherwise, unless you really really really know what you are doing, HB_MEMORY_MODE_WRITABLEis appropriate if you really made a copy of data solely for the purpose of passing to HarfBuzz and doing that just once (no reuse!),- If the font is
mmaped, it's okay to useHB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE, however, using that mode correctly is very tricky. UseHB_MEMORY_MODE_READONLYinstead.
Namespace: HarfBuzz
Package: harfbuzz-gobject