From WikiChip
Editing mirc/commands/hsave
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 40: | Line 40: | ||
* 2 bytes containing the length of the following item name in bigendian format. These bytes are 0x08 0x00 for an 8-character item name | * 2 bytes containing the length of the following item name in bigendian format. These bytes are 0x08 0x00 for an 8-character item name | ||
* The text name of the item. If the first 2 bytes were 0x08 0x00, the following 8 bytes are the name of the item. | * The text name of the item. If the first 2 bytes were 0x08 0x00, the following 8 bytes are the name of the item. | ||
− | * 2 bytes containing the | + | * 2 bytes containing the length of the following data value. These bytes are 0x05 0x00 when there is a 5 byte value following these 2 bytes. The value is the number of bytes not the $len of the data. Text data value tést is UTF-8 encoded as 5 bytes and the binary format contains 0x05 0x00 even though the $len() is 4. |
− | * The bytes of the data value. There is no $crlf written to disk unless the value is a binary variable containing the $chr(13) $chr(10) bytes | + | * The bytes of the data value. There is no $crlf written to disk unless the value is a binary variable containing the $chr(13) $chr(10) bytes. |
− | + | Repeat the above until the end of file is reached. | |
− | |||
− | |||
* Disk Structure: -B switch | * Disk Structure: -B switch | ||
Line 50: | Line 48: | ||
* 4 bytes containing the length of the following item name in bigendian format. These bytes are 0x08 0x00 0x00 0x00 for an 8-byte item name | * 4 bytes containing the length of the following item name in bigendian format. These bytes are 0x08 0x00 0x00 0x00 for an 8-byte item name | ||
* The text name of the item. If the first 4 bytes were 0x08 0x00 0x00 0x00, the following 8 bytes are the name of the item. | * The text name of the item. If the first 4 bytes were 0x08 0x00 0x00 0x00, the following 8 bytes are the name of the item. | ||
− | * 4 bytes containing the | + | * 4 bytes containing the length of the following data value. These bytes are 0x40 0xe2 0x01 0x00 when there is a 123456-byte value following these 2 bytes. The value is the number of bytes not the $len of the data. Data value tést is UTF-8 encoded as 5 bytes even though the $len() is 4. |
− | * The bytes of the data value. There is no $crlf written to disk unless the value is a binary variable containing the $chr(13) $chr(10) bytes | + | * The bytes of the data value. There is no $crlf written to disk unless the value is a binary variable containing the $chr(13) $chr(10) bytes. |
− | + | Repeat the above until the end of file is reached. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Disk Structure: -i switch with optional [section] | * Disk Structure: -i switch with optional [section] |