TAG_End
| Header |
---|
| TagType |
Type | byte |
Value | 0 |
Hex | 00 |
TAG_Byte
hoge: 1b
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | byte |
Value | 1 | 4 | hoge | 1 |
Hex | 01 00 04 68 6f 67 65 01 |
TAG_Short
hoge: 1s
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | short |
Value | 2 | 4 | hoge | 1 |
Hex | 02 00 04 68 6f 67 65 00 01 |
TAG_Int
hoge: 1
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | int |
Value | 3 | 4 | hoge | 1 |
Hex | 03 00 04 68 6f 67 65 00 00 00 01 |
TAG_Long
hoge: 1L
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | long |
Value | 4 | 4 | hoge | 1 |
Hex | 04 00 04 68 6f 67 65 00 00 00 00 00 00 00 01 |
TAG_Float
hoge: 1.0f
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | float |
Value | 5 | 4 | hoge | 1.0 |
Hex | 05 00 04 68 6f 67 65 3f 80 00 00 |
TAG_Double
hoge: 1.0d
| Header | Body |
---|
| TagType | TagNameLength | TagName | Value |
Type | byte | short | string | double |
Value | 6 | 4 | hoge | 1.0 |
Hex | 06 00 04 68 6f 67 65 3f f0 00 00 00 00 00 00 |
TAG_Byte_Array
hoge: [B; 1B, 2B]
| Header | Body |
---|
| TagType | TagNameLength | TagName | ArrayLength | Array |
Type | byte | short | string | int | byte | byte |
Value | 7 | 4 | hoge | 2 | 1 | 2 |
Hex | 07 00 04 68 6f 67 65 00 00 00 02 01 02 |
TAG_String
hoge: "huga"
| Header | Body |
---|
| TagType | TagNameLength | TagName | ValueLength | Value |
Type | byte | short | string | short | string |
Value | 8 | 4 | hoge | 4 | huga |
Hex | 08 00 04 68 6f 67 65 00 04 68 75 67 61 |
TAG_List
hoge: [1s, 2s]
| Header | Body |
---|
| TagType | TagNameLength | TagName | ListTagType | ListLength | List |
Type | byte | short | string | byte | int | short | short |
Value | 9 | 4 | hoge | 2 | 2 | 1 | 2 |
Hex | 09 00 04 68 6f 67 65 02 00 00 00 02 00 01 00 02 |
TAG_Compound
hoge: {}
| Header | Body | TAG_End |
---|
| TagType | TagNameLength | TagName | ChildTags |
Type | byte | short | string |
Value | 10 | 4 | hoge |
Hex | 0a 00 04 68 6f 67 65 |
TAG_Int_Array
hoge: [I; 1, 2]
| Header | Body |
---|
| TagType | TagNameLength | TagName | ArrayLength | Array |
Type | byte | short | string | int | int | int |
Value | 11 | 4 | hoge | 2 | 1 | 2 |
Hex | 0b 00 04 68 6f 67 65 00 00 00 02 00 00 00 01 00 00 00 02 |
TAG_Long_Array
hoge: [L; 1L, 2L]
| Header | Body |
---|
| TagType | TagNameLength | TagName | ArrayLength | Array |
Type | byte | short | string | int | long | long |
Value | 12 | 4 | hoge | 2 | 1 | 2 |
Hex | 0c 00 04 68 6f 67 65 00 00 00 02 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 02 |
Example
{hoge: {foo: "bar", piyo: 10s}, huga: [I; 1, 2, 3]}
= 0a 00 00 0a 00 04 68 6f 67 65 08 00 03 66 6f 6f 00 03 62 61 72 02 00 04 70 69 79 6f 00 0a 00 0b 00 04 68 75 67 61 00 00 00 03 00 00 00 01 00 00 00 02 00 00 00 03 00
Source