MemoryMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Various memory modes for Blob
public enum MemoryMode
- Inheritance
-
MemoryMode
Fields
| Name | Value | Description |
|---|---|---|
| Duplicate | 0 | HarfBuzz makes a copy immediately. |
| ReadOnly | 1 | Default mode indicating that the memory won't be changed. |
| Writeable | 2 | Indicates that the data was copied solely for the purpose of passing to HarfBuzz. |
| ReadOnlyMayMakeWriteable | 3 | The font file was mmap()ed, but ReadOnly should still be used. |
Remarks
In no case shall the HarfBuzz client modify memory that is passed to HarfBuzz in a blob. If there is any such possibility, Duplicate should be used such that HarfBuzz makes a copy immediately.