Difference between revisions of "FSFile:Write"

From 3dbrew
Jump to navigation Jump to search
m (Type nit.)
Line 8: Line 8:
 
| Header code [0x08030102]
 
| Header code [0x08030102]
 
|-
 
|-
| 1
+
| 1-2
| File offset lower word
+
| u64, File Offset
|-
 
| 2
 
| File offset upper word
 
 
|-
 
|-
 
| 3
 
| 3
Line 21: Line 18:
 
|-
 
|-
 
| 5
 
| 5
| (Size<<4)  <nowiki>|</nowiki> 10
+
| (Size << 4)  <nowiki>|</nowiki> 0xA
 
|-
 
|-
 
| 6
 
| 6
| Data ptr
+
| Data Pointer
 
|}
 
|}
  
Line 37: Line 34:
 
|-
 
|-
 
| 1
 
| 1
| Resultcode
+
| Result code
 
|-
 
|-
 
| 2
 
| 2
 
| Total written data
 
| Total written data
 
|}
 
|}

Revision as of 22:41, 17 October 2015

Request

Index Word Description
0 Header code [0x08030102]
1-2 u64, File Offset
3 Size
4 Flush flags: 0 = don't flush, 0x10001 = enable flush. Note that using invalid flush flags may corrupt the filesystem for this archive.
5 (Size << 4) | 0xA
6 Data Pointer

Response

Index Word Description
0 Header code
1 Result code
2 Total written data