enum HarfBuzz::MemoryModeT
Overview
@HB_MEMORY_MODE_DUPLICATE HB_MEMORY_MODE_READONLY HB_MEMORY_MODE_WRITABLE HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE 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_DUPLICATE should be used such that HarfBuzz makes a copy immediately,
-
Use HB_MEMORY_MODE_READONLY otherwise, unless you really really really know what you are doing,
-
HB_MEMORY_MODE_WRITABLE is 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 mmap()ed, it's okay to use HB_MEMORY_READONLY_MAY_MAKE_WRITABLE, however, using that mode correctly is very tricky. Use HB_MEMORY_MODE_READONLY instead.
Defined in:
lib/gi-crystal/src/auto/harf_buzz-0.0/harf_buzz.crEnum Members
-
Duplicate =
0_u32
-
Readonly =
1_u32
-
Writable =
2_u32
-
ReadonlyMayMakeWritable =
3_u32
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
Class methods inherited from struct Enum
g_type : UInt64
g_type
Class Method Detail
Returns the type id (GType) registered in GLib type system.