Enum Class MemoryMode

java.lang.Object
java.lang.Enum<MemoryMode>
org.freedesktop.harfbuzz.MemoryMode
All Implemented Interfaces:
Enumeration, Serializable, Comparable<MemoryMode>, Constable

@Generated("io.github.jwharm.JavaGI") public enum MemoryMode extends Enum<MemoryMode> implements Enumeration
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, HBMEMORYMODEDUPLICATE should be used such that HarfBuzz makes a copy immediately,
  • Use HBMEMORYMODEREADONLY otherwise, unless you really really really know what you are doing,
  • HBMEMORYMODEWRITABLE 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 HBMEMORYMODEREADONLYMAYMAKEWRITABLE, however, using that mode correctly is very tricky. Use HBMEMORYMODEREADONLY instead.