Difference between revisions of "APT:ReceiveCaptureBufferInfo"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00410040] |- | 1 | Size |} =Response= {| class="wikitable" border="1" |- ! Ind...")
 
m
Line 10: Line 10:
 
| 1
 
| 1
 
| Size
 
| Size
 +
|}
 +
 +
The following is located 0x100-bytes after the beginning of the above command buffer:
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Index Word
 +
!  Description
 +
|-
 +
| 0
 +
| <nowiki>(Size << 14) | 2</nowiki>
 +
|-
 +
| 1
 +
| void*, Output Buffer
 
|}
 
|}
  
Line 25: Line 38:
 
|-
 
|-
 
| 2
 
| 2
| Clamped size
+
| Actual Size
|-
 
| 3
 
| <nowiki>(Size<<14) | 2</nowiki>
 
|-
 
| 4
 
| Output buffer ptr
 
 
|}
 
|}
  
 
=Description=
 
=Description=
This command loads the data set by [[APT:SendCaptureBufferInfo]]. The input size is clamped to 0x20-bytes by NS, then this size is clamped to the size for the NS state [[APT:SendCaptureBufferInfo|buffer]]. The NS state buffer data is copied to the output buffer,(when the clamped size is not zero) then the size field for the state buffer is set 0.
+
This command loads the data set by [[APT:SendCaptureBufferInfo]]. The input size is clamped to 0x20-bytes by NS, then this size is clamped to the size for the NS state [[APT:SendCaptureBufferInfo|buffer]]. The NS state buffer data is copied to the output buffer, (when the clamped size is not zero) then the size field for the state buffer is set 0.

Revision as of 04:32, 22 November 2015

Request

Index Word Description
0 Header code [0x00410040]
1 Size

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (Size << 14) | 2
1 void*, Output Buffer

Response

Index Word Description
0 Header code
1 Result code
2 Actual Size

Description

This command loads the data set by APT:SendCaptureBufferInfo. The input size is clamped to 0x20-bytes by NS, then this size is clamped to the size for the NS state buffer. The NS state buffer data is copied to the output buffer, (when the clamped size is not zero) then the size field for the state buffer is set 0.