NCM services: Difference between revisions
Clarification of IContentMetaDatabase::Get output buffer contents |
Even better clarification of IContentMetaDatabase::Get |
||
Line 324: | Line 324: | ||
| 0 || Set || Takes a [[NCA#Meta_records|Meta Record]], a type-5 [[NCA#Content_records|Content Records]] buffer and a u64 size. | | 0 || Set || Takes a [[NCA#Meta_records|Meta Record]], a type-5 [[NCA#Content_records|Content Records]] buffer and a u64 size. | ||
|- | |- | ||
| 1 || Get || Takes a [[NCA#Meta_records|Meta Record]], a type-6 buffer to write [[NCA#Content_records|Content Records]] to and a u64 size. Returns the actual number of bytes read into the buffer. | | 1 || Get || Takes a [[NCA#Meta_records|Meta Record]], a type-6 buffer to write [[NCA#Content_records|Content Records]] to and a u64 size. Returns the actual number of bytes read into the buffer. First 8 bytes of the data is header (u16 numExtraDataBytes, numContentRecords, numMetaRecords, padding). After the header is numExtraDataBytes of additional data, after which follow content records and meta records. Set takes this same data as input. | ||
|- | |- | ||
| 2 || Remove || Takes a [[NCA#Meta_records|Meta Record]], and removes the associated record. | | 2 || Remove || Takes a [[NCA#Meta_records|Meta Record]], and removes the associated record. |