Changes

Jump to navigation Jump to search
389 bytes added ,  18:34, 24 November 2014
Explain and ilustrate image structure a bit more clear
Line 24: Line 24:  
SIZE      ::= "32 bit integer, equals the PAYLOAD length"
 
SIZE      ::= "32 bit integer, equals the PAYLOAD length"
 
</pre>
 
</pre>
 +
 +
Or, you can visualize it like
 +
 +
{| class="wikitable"
 +
|-
 +
! Type !! Size(bytes)
 +
|-
 +
| Magic || 4
 +
|-
 +
| Size0 || 4
 +
|-
 +
| Message0 || Size0
 +
|-
 +
| ... || ...
 +
|-
 +
| SizeN || 4
 +
|-
 +
| MessageN || SizeN
 +
|}
    
The amount of entries in a image file depends on the type of file.
 
The amount of entries in a image file depends on the type of file.
Line 119: Line 138:  
; Pagemap files
 
; Pagemap files
 
: These files contain info about which virtual regions are populated with data. The file is a set of protobuf messages.
 
: These files contain info about which virtual regions are populated with data. The file is a set of protobuf messages.
 +
: Note that, even though, pagemap is an array kind of image(and can be included to the previous type), first pb message is of type pagemap_head and all the following ones are of type pagemap_entry.
    
; Pages files
 
; Pages files
85

edits

Navigation menu