CECDS:SprGetSendSlotsMetadata

CECDS:SprGetSendSlotsMetadata

Request #

WordDescription
0
0x040C0042Cmd0x040CParam1Xlat2
1buffer size
2Descriptor for mapping a write-only buffer in the target process
3buffer address

Response #

WordDescription
0
Header (unknown value)
1Result code
2Amount of slots read

Description #

This copies the metadata for all slots that need to be sent into the specified buffer. Each metadata object consists out of a tuple of three words: send method, title_id, size whereas the size is the size in bytes of the corresponding spr slot. Copies up to buffer size / (4*3) slots into the buffer.

Returns the amount of slots read, not the amount of bytes read.

Requires the Cec Spr Status to be CEC_SPR_SEND_READY.