home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-04-27 | 5.5 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: StdFile.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Apr 27 19:56:11 1992, modified Mon Apr 27 19:56:11 1992, creator 'MPS ', type ASCII, 4905 bytes "StdFile.h" , at 0x13a9 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 53 74 64 46 69 6c | 65 2e 68 00 00 00 00 00 |..StdFil|e.h.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 13 29 00 | 00 01 ac a6 22 45 1b a6 |......).|...."E..|
|00000060| 22 45 1b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |"E......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ef 7b 00 00 |........|.....{..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 53 54 44 46 49 4c |#ifndef |__STDFIL|
|00000090| 45 5f 5f 0d 23 64 65 66 | 69 6e 65 20 5f 5f 53 54 |E__.#def|ine __ST|
|000000a0| 44 46 49 4c 45 5f 5f 20 | 31 0d 0d 23 69 66 6e 64 |DFILE__ |1..#ifnd|
|000000b0| 65 66 20 5f 5f 54 59 50 | 45 53 5f 5f 0d 23 69 6e |ef __TYP|ES__.#in|
|000000c0| 63 6c 75 64 65 20 3c 74 | 79 70 65 73 2e 68 3e 0d |clude <t|ypes.h>.|
|000000d0| 23 65 6e 64 69 66 0d 0d | 23 69 66 6e 64 65 66 20 |#endif..|#ifndef |
|000000e0| 5f 5f 53 54 44 49 4f 5f | 5f 0d 23 69 6e 63 6c 75 |__STDIO_|_.#inclu|
|000000f0| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0d 23 65 6e |de <stdi|o.h>.#en|
|00000100| 64 69 66 0d 0d 23 69 66 | 6e 64 65 66 20 5f 5f 53 |dif..#if|ndef __S|
|00000110| 54 44 4c 49 42 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |TDLIB__.|#include|
|00000120| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0d 23 65 6e 64 | <stdlib|.h>.#end|
|00000130| 69 66 0d 0d 0d 2f 2f 20 | 44 65 66 69 6e 65 20 6f |if...// |Define o|
|00000140| 75 72 20 73 65 67 6d 65 | 6e 74 20 66 6f 72 20 6f |ur segme|nt for o|
|00000150| 75 74 6c 69 6e 65 64 20 | 69 6e 6c 69 6e 65 73 0d |utlined |inlines.|
|00000160| 23 70 72 61 67 6d 61 20 | 73 65 67 6d 65 6e 74 20 |#pragma |segment |
|00000170| 53 74 64 46 69 6c 65 0d | 0d 0d 63 6c 61 73 73 20 |StdFile.|..class |
|00000180| 53 74 64 46 69 6c 65 20 | 3a 20 70 75 62 6c 69 63 |StdFile |: public|
|00000190| 20 53 69 6e 67 6c 65 4f | 62 6a 65 63 74 20 7b 0d | SingleO|bject {.|
|000001a0| 70 75 62 6c 69 63 3a 0d | 09 53 74 64 46 69 6c 65 |public:.|.StdFile|
|000001b0| 28 29 3b 0d 09 53 74 64 | 46 69 6c 65 28 63 6f 6e |();..Std|File(con|
|000001c0| 73 74 20 46 49 4c 45 20 | 2a 66 29 3b 0d 09 53 74 |st FILE |*f);..St|
|000001d0| 64 46 69 6c 65 28 63 6f | 6e 73 74 20 63 68 61 72 |dFile(co|nst char|
|000001e0| 20 2a 66 69 6c 65 4e 61 | 6d 65 2c 20 63 6f 6e 73 | *fileNa|me, cons|
|000001f0| 74 20 63 68 61 72 20 2a | 6d 6f 64 65 29 3b 0d 09 |t char *|mode);..|
|00000200| 53 74 64 46 69 6c 65 28 | 63 6f 6e 73 74 20 53 74 |StdFile(|const St|
|00000210| 64 46 69 6c 65 20 26 61 | 53 74 64 46 69 6c 65 29 |dFile &a|StdFile)|
|00000220| 3b 0d 0d 09 76 69 72 74 | 75 61 6c 20 7e 53 74 64 |;...virt|ual ~Std|
|00000230| 46 69 6c 65 28 29 3b 0d | 0d 0d 09 46 49 4c 45 20 |File();.|...FILE |
|00000240| 2a 4f 70 65 6e 28 63 6f | 6e 73 74 20 63 68 61 72 |*Open(co|nst char|
|00000250| 20 2a 66 69 6c 65 4e 61 | 6d 65 2c 20 63 6f 6e 73 | *fileNa|me, cons|
|00000260| 74 20 63 68 61 72 20 2a | 6d 6f 64 65 29 3b 0d 09 |t char *|mode);..|
|00000270| 2f 2f 20 4f 70 65 6e 20 | 74 68 65 20 53 74 64 46 |// Open |the StdF|
|00000280| 69 6c 65 20 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 |ile inde|pendent |
|00000290| 6f 66 20 6f 74 68 65 72 | 20 6f 70 65 72 61 74 69 |of other| operati|
|000002a0| 6f 6e 73 0d 0d 09 76 6f | 69 64 20 43 6c 6f 73 65 |ons...vo|id Close|
|000002b0| 28 29 3b 0d 09 2f 2f 20 | 43 6c 6f 73 65 20 74 68 |();..// |Close th|
|000002c0| 65 20 53 74 64 46 69 6c | 65 0d 0d 09 6f 70 65 72 |e StdFil|e...oper|
|000002d0| 61 74 6f 72 20 46 49 4c | 45 20 2a 28 29 20 63 6f |ator FIL|E *() co|
|000002e0| 6e 73 74 3b 0d 09 2f 2f | 20 47 65 74 20 74 68 65 |nst;..//| Get the|
|000002f0| 20 46 49 4c 45 2a 20 28 | 61 73 20 66 6f 72 20 66 | FILE* (|as for f|
|00000300| 73 63 61 6e 66 29 0d 0d | 0d 09 2f 2f 20 46 6f 72 |scanf)..|..// For|
|00000310| 6d 61 74 74 65 64 20 6f | 75 74 70 75 74 20 6f 70 |matted o|utput op|
|00000320| 65 72 61 74 69 6f 6e 73 | 0d 09 69 6e 6c 69 6e 65 |erations|..inline|
|00000330| 20 69 6e 74 20 50 75 74 | 63 28 69 6e 74 20 63 29 | int Put|c(int c)|
|00000340| 20 63 6f 6e 73 74 3b 0d | 09 69 6e 6c 69 6e 65 20 | const;.|.inline |
|00000350| 69 6e 74 20 50 75 74 73 | 28 63 6f 6e 73 74 20 63 |int Puts|(const c|
|00000360| 68 61 72 20 2a 73 74 72 | 29 20 63 6f 6e 73 74 3b |har *str|) const;|
|00000370| 0d 09 69 6e 6c 69 6e 65 | 20 69 6e 74 20 50 72 69 |..inline| int Pri|
|00000380| 6e 74 28 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 73 |nt(const| char *s|
|00000390| 74 72 29 20 63 6f 6e 73 | 74 3b 0d 09 69 6e 6c 69 |tr) cons|t;..inli|
|000003a0| 6e 65 20 69 6e 74 20 50 | 72 69 6e 74 28 69 6e 74 |ne int P|rint(int|
|000003b0| 20 76 29 20 63 6f 6e 73 | 74 3b 0d 09 69 6e 6c 69 | v) cons|t;..inli|
|000003c0| 6e 65 20 69 6e 74 20 50 | 72 69 6e 74 28 65 78 74 |ne int P|rint(ext|
|000003d0| 65 6e 64 65 64 20 76 29 | 20 63 6f 6e 73 74 3b 0d |ended v)| const;.|
|000003e0| 09 69 6e 6c 69 6e 65 20 | 69 6e 74 20 50 72 69 6e |.inline |int Prin|
|000003f0| 74 66 28 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 66 |tf(const| char *f|
|00000400| 6d 74 2c 20 2e 2e 2e 29 | 20 63 6f 6e 73 74 3b 0d |mt, ...)| const;.|
|00000410| 0d 09 2f 2f 20 55 6e 66 | 6f 72 6d 61 74 74 65 64 |..// Unf|ormatted|
|00000420| 20 6f 75 74 70 75 74 20 | 6f 70 65 72 61 74 69 6f | output |operatio|
|00000430| 6e 73 0d 09 69 6e 6c 69 | 6e 65 20 73 69 7a 65 5f |ns..inli|ne size_|
|00000440| 74 20 57 72 69 74 65 28 | 63 6f 6e 73 74 20 76 6f |t Write(|const vo|
|00000450| 69 64 20 2a 70 2c 20 73 | 69 7a 65 5f 74 20 6e 29 |id *p, s|ize_t n)|
|00000460| 20 63 6f 6e 73 74 3b 0d | 09 69 6e 6c 69 6e 65 20 | const;.|.inline |
|00000470| 73 69 7a 65 5f 74 20 57 | 72 69 74 65 28 63 6f 6e |size_t W|rite(con|
|00000480| 73 74 20 76 6f 69 64 20 | 2a 70 2c 20 73 69 7a 65 |st void |*p, size|
|00000490| 5f 74 20 73 2c 20 73 69 | 7a 65 5f 74 20 6e 29 20 |_t s, si|ze_t n) |
|000004a0| 63 6f 6e 73 74 3b 0d 0d | 09 76 6f 69 64 20 46 6c |const;..|.void Fl|
|000004b0| 75 73 68 28 29 20 63 6f | 6e 73 74 3b 0d 0d 09 2f |ush() co|nst;.../|
|000004c0| 2f 20 46 6f 72 6d 61 74 | 74 65 64 20 69 6e 70 75 |/ Format|ted inpu|
|000004d0| 74 20 6f 70 65 72 61 74 | 69 6f 6e 73 0d 09 63 68 |t operat|ions..ch|
|000004e0| 61 72 20 2a 47 65 74 73 | 28 63 68 61 72 20 2a 73 |ar *Gets|(char *s|
|000004f0| 2c 20 69 6e 74 20 6e 29 | 20 63 6f 6e 73 74 3b 0d |, int n)| const;.|
|00000500| 09 69 6e 74 20 47 65 74 | 63 28 29 20 63 6f 6e 73 |.int Get|c() cons|
|00000510| 74 3b 0d 09 69 6e 74 20 | 47 65 74 28 75 6e 73 69 |t;..int |Get(unsi|
|00000520| 67 6e 65 64 20 63 68 61 | 72 20 26 76 29 20 63 6f |gned cha|r &v) co|
|00000530| 6e 73 74 3b 0d 09 69 6e | 74 20 47 65 74 28 75 6e |nst;..in|t Get(un|
|00000540| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 20 26 76 29 |signed s|hort &v)|
|00000550| 20 63 6f 6e 73 74 3b 0d | 09 69 6e 74 20 47 65 74 | const;.|.int Get|
|00000560| 28 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 26 76 |(unsigne|d int &v|
|00000570| 29 20 63 6f 6e 73 74 3b | 0d 09 69 6e 74 20 47 65 |) const;|..int Ge|
|00000580| 74 28 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |t(unsign|ed long |
|00000590| 26 76 29 20 63 6f 6e 73 | 74 3b 0d 09 69 6e 74 20 |&v) cons|t;..int |
|000005a0| 47 65 74 28 63 68 61 72 | 20 26 76 29 20 63 6f 6e |Get(char| &v) con|
|000005b0| 73 74 3b 0d 09 69 6e 74 | 20 47 65 74 28 73 68 6f |st;..int| Get(sho|
|000005c0| 72 74 20 26 76 29 20 63 | 6f 6e 73 74 3b 0d 09 69 |rt &v) c|onst;..i|
|000005d0| 6e 74 20 47 65 74 28 69 | 6e 74 20 26 76 29 20 63 |nt Get(i|nt &v) c|
|000005e0| 6f 6e 73 74 3b 0d 09 69 | 6e 74 20 47 65 74 28 6c |onst;..i|nt Get(l|
|000005f0| 6f 6e 67 20 26 76 29 20 | 63 6f 6e 73 74 3b 0d 09 |ong &v) |const;..|
|00000600| 69 6e 74 20 47 65 74 28 | 66 6c 6f 61 74 20 26 76 |int Get(|float &v|
|00000610| 29 20 63 6f 6e 73 74 3b | 0d 09 69 6e 74 20 47 65 |) const;|..int Ge|
|00000620| 74 28 64 6f 75 62 6c 65 | 20 26 76 29 20 63 6f 6e |t(double| &v) con|
|00000630| 73 74 3b 0d 09 69 6e 74 | 20 47 65 74 28 65 78 74 |st;..int| Get(ext|
|00000640| 65 6e 64 65 64 20 26 76 | 29 20 63 6f 6e 73 74 3b |ended &v|) const;|
|00000650| 0d 09 69 6e 74 20 55 6e | 67 65 74 63 28 69 6e 74 |..int Un|getc(int|
|00000660| 20 63 29 20 63 6f 6e 73 | 74 3b 0d 0d 09 2f 2f 20 | c) cons|t;...// |
|00000670| 55 6e 66 6f 72 6d 61 74 | 74 65 64 20 69 6e 70 75 |Unformat|ted inpu|
|00000680| 74 20 6f 70 65 72 61 74 | 69 6f 6e 73 0d 09 73 69 |t operat|ions..si|
|00000690| 7a 65 5f 74 20 52 65 61 | 64 28 76 6f 69 64 20 2a |ze_t Rea|d(void *|
|000006a0| 70 2c 20 73 69 7a 65 5f | 74 20 6e 29 20 63 6f 6e |p, size_|t n) con|
|000006b0| 73 74 3b 0d 09 73 69 7a | 65 5f 74 20 52 65 61 64 |st;..siz|e_t Read|
|000006c0| 28 76 6f 69 64 20 2a 70 | 2c 20 73 69 7a 65 5f 74 |(void *p|, size_t|
|000006d0| 20 73 2c 20 73 69 7a 65 | 5f 74 20 6e 29 20 63 6f | s, size|_t n) co|
|000006e0| 6e 73 74 3b 0d 0d 0d 09 | 2f 2f 20 53 65 65 6b 20 |nst;....|// Seek |
|000006f0| 6f 70 65 72 61 74 69 6f | 6e 73 0d 09 69 6e 74 20 |operatio|ns..int |
|00000700| 53 65 65 6b 28 6c 6f 6e | 67 20 6f 66 66 73 65 74 |Seek(lon|g offset|
|00000710| 2c 20 69 6e 74 20 6f 72 | 69 67 69 6e 20 3d 20 53 |, int or|igin = S|
|00000720| 45 45 4b 5f 53 45 54 29 | 20 63 6f 6e 73 74 3b 0d |EEK_SET)| const;.|
|00000730| 09 76 6f 69 64 20 52 65 | 77 69 6e 64 28 29 20 63 |.void Re|wind() c|
|00000740| 6f 6e 73 74 3b 0d 0d 09 | 69 6e 74 20 47 65 74 50 |onst;...|int GetP|
|00000750| 6f 73 28 66 70 6f 73 5f | 74 20 2a 70 29 20 63 6f |os(fpos_|t *p) co|
|00000760| 6e 73 74 3b 0d 09 69 6e | 74 20 53 65 74 50 6f 73 |nst;..in|t SetPos|
|00000770| 28 66 70 6f 73 5f 74 20 | 2a 70 29 20 63 6f 6e 73 |(fpos_t |*p) cons|
|00000780| 74 3b 0d 0d 09 73 69 7a | 65 5f 74 20 47 65 74 53 |t;...siz|e_t GetS|
|00000790| 69 7a 65 28 29 20 63 6f | 6e 73 74 3b 0d 09 2f 2a |ize() co|nst;../*|
|000007a0| 0d 09 2a 2a 20 52 65 74 | 75 72 6e 20 6c 65 6e 67 |..** Ret|urn leng|
|000007b0| 74 68 20 6f 66 20 74 68 | 65 20 66 69 6c 65 2e 20 |th of th|e file. |
|000007c0| 20 52 65 74 75 72 6e 73 | 20 30 20 6f 6e 20 65 72 | Returns| 0 on er|
|000007d0| 72 6f 72 20 6f 72 20 69 | 66 20 74 68 65 20 66 69 |ror or i|f the fi|
|000007e0| 6c 65 0d 09 2a 2a 20 69 | 73 20 61 20 73 74 61 6e |le..** i|s a stan|
|000007f0| 64 61 72 64 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |dard inp|ut file |
|00000800| 77 68 69 63 68 20 69 73 | 20 6e 6f 74 20 63 6f 6e |which is| not con|
|00000810| 6e 65 63 74 65 64 20 74 | 6f 20 61 20 72 65 61 6c |nected t|o a real|
|00000820| 0d 09 2a 2a 20 64 69 73 | 6b 20 66 69 6c 65 0d 09 |..** dis|k file..|
|00000830| 2a 2f 0d 0d 0d 09 2f 2f | 20 45 72 72 6f 72 20 6f |*/....//| Error o|
|00000840| 70 65 72 61 74 69 6f 6e | 73 0d 09 76 6f 69 64 20 |peration|s..void |
|00000850| 43 6c 65 61 72 45 72 72 | 28 29 20 63 6f 6e 73 74 |ClearErr|() const|
|00000860| 3b 0d 09 42 6f 6f 6c 65 | 61 6e 20 49 73 45 4f 46 |;..Boole|an IsEOF|
|00000870| 28 29 20 63 6f 6e 73 74 | 3b 0d 09 69 6e 74 20 45 |() const|;..int E|
|00000880| 72 72 6f 72 28 29 20 63 | 6f 6e 73 74 3b 0d 0d 0d |rror() c|onst;...|
|00000890| 70 72 69 76 61 74 65 3a | 0d 09 42 6f 6f 6c 65 61 |private:|..Boolea|
|000008a0| 6e 20 66 49 73 43 6f 70 | 79 3b 09 09 09 09 09 09 |n fIsCop|y;......|
|000008b0| 09 2f 2f 20 54 72 75 65 | 20 69 66 20 63 6f 6e 73 |.// True| if cons|
|000008c0| 74 72 75 63 74 65 64 20 | 66 72 6f 6d 20 61 20 53 |tructed |from a S|
|000008d0| 74 64 46 69 6c 65 0d 09 | 46 49 4c 45 20 2a 66 46 |tdFile..|FILE *fF|
|000008e0| 69 6c 65 3b 0d 0d 70 72 | 69 76 61 74 65 3a 0d 09 |ile;..pr|ivate:..|
|000008f0| 73 74 61 74 69 63 20 63 | 6f 6e 73 74 20 63 68 61 |static c|onst cha|
|00000900| 72 20 73 4f 49 46 6d 74 | 5b 5d 3b 09 09 09 09 09 |r sOIFmt|[];.....|
|00000910| 2f 2f 20 4f 75 74 70 75 | 74 20 69 6e 74 65 67 65 |// Outpu|t intege|
|00000920| 72 20 66 6f 72 6d 61 74 | 0d 09 73 74 61 74 69 63 |r format|..static|
|00000930| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 73 4f 45 46 | const c|har sOEF|
|00000940| 6d 74 5b 5d 3b 09 09 09 | 09 09 2f 2f 20 4f 75 74 |mt[];...|..// Out|
|00000950| 70 75 74 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |put floa|ting poi|
|00000960| 6e 74 20 66 6f 72 6d 61 | 74 0d 0d 09 73 74 61 74 |nt forma|t...stat|
|00000970| 69 63 20 63 6f 6e 73 74 | 20 63 68 61 72 20 73 49 |ic const| char sI|
|00000980| 55 43 46 6d 74 5b 5d 3b | 09 09 09 09 2f 2f 20 49 |UCFmt[];|....// I|
|00000990| 6e 70 75 74 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |nput uns|igned ch|
|000009a0| 61 72 20 66 6f 72 6d 61 | 74 2e 2e 2e 0d 09 73 74 |ar forma|t.....st|
|000009b0| 61 74 69 63 20 63 6f 6e | 73 74 20 63 68 61 72 20 |atic con|st char |
|000009c0| 73 49 55 53 46 6d 74 5b | 5d 3b 0d 09 73 74 61 74 |sIUSFmt[|];..stat|
|000009d0| 69 63 20 63 6f 6e 73 74 | 20 63 68 61 72 20 73 49 |ic const| char sI|
|000009e0| 55 49 46 6d 74 5b 5d 3b | 0d 09 73 74 61 74 69 63 |UIFmt[];|..static|
|000009f0| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 73 49 55 4c | const c|har sIUL|
|00000a00| 46 6d 74 5b 5d 3b 0d 09 | 73 74 61 74 69 63 20 63 |Fmt[];..|static c|
|00000a10| 6f 6e 73 74 20 63 68 61 | 72 20 73 49 43 46 6d 74 |onst cha|r sICFmt|
|00000a20| 5b 5d 3b 0d 09 73 74 61 | 74 69 63 20 63 6f 6e 73 |[];..sta|tic cons|
|00000a30| 74 20 63 68 61 72 20 73 | 49 53 46 6d 74 5b 5d 3b |t char s|ISFmt[];|
|00000a40| 0d 09 73 74 61 74 69 63 | 20 63 6f 6e 73 74 20 63 |..static| const c|
|00000a50| 68 61 72 20 73 49 49 46 | 6d 74 5b 5d 3b 0d 09 73 |har sIIF|mt[];..s|
|00000a60| 74 61 74 69 63 20 63 6f | 6e 73 74 20 63 68 61 72 |tatic co|nst char|
|00000a70| 20 73 49 4c 46 6d 74 5b | 5d 3b 0d 09 73 74 61 74 | sILFmt[|];..stat|
|00000a80| 69 63 20 63 6f 6e 73 74 | 20 63 68 61 72 20 73 49 |ic const| char sI|
|00000a90| 46 46 6d 74 5b 5d 3b 0d | 09 73 74 61 74 69 63 20 |FFmt[];.|.static |
|00000aa0| 63 6f 6e 73 74 20 63 68 | 61 72 20 73 49 44 46 6d |const ch|ar sIDFm|
|00000ab0| 74 5b 5d 3b 0d 09 73 74 | 61 74 69 63 20 63 6f 6e |t[];..st|atic con|
|00000ac0| 73 74 20 63 68 61 72 20 | 73 49 45 46 6d 74 5b 5d |st char |sIEFmt[]|
|00000ad0| 3b 0d 7d 3b 0d 0d 0d 2f | 2f 20 53 74 61 6e 64 61 |;.};.../|/ Standa|
|00000ae0| 72 64 20 66 69 6c 65 20 | 64 65 73 63 72 69 70 74 |rd file |descript|
|00000af0| 6f 72 73 0d 65 78 74 65 | 72 6e 20 53 74 64 46 69 |ors.exte|rn StdFi|
|00000b00| 6c 65 20 67 53 74 64 69 | 6e 3b 0d 65 78 74 65 72 |le gStdi|n;.exter|
|00000b10| 6e 20 53 74 64 46 69 6c | 65 20 67 53 74 64 6f 75 |n StdFil|e gStdou|
|00000b20| 74 3b 0d 65 78 74 65 72 | 6e 20 53 74 64 46 69 6c |t;.exter|n StdFil|
|00000b30| 65 20 67 53 74 64 65 72 | 72 3b 0d 0d 0d 69 6e 6c |e gStder|r;...inl|
|00000b40| 69 6e 65 20 53 74 64 46 | 69 6c 65 3a 3a 53 74 64 |ine StdF|ile::Std|
|00000b50| 46 69 6c 65 28 29 0d 09 | 3a 20 66 46 69 6c 65 28 |File()..|: fFile(|
|00000b60| 30 29 2c 0d 09 20 20 66 | 49 73 43 6f 70 79 28 66 |0),.. f|IsCopy(f|
|00000b70| 61 6c 73 65 29 0d 09 7b | 0d 09 7d 0d 0d 0d 69 6e |alse)..{|..}...in|
|00000b80| 6c 69 6e 65 20 53 74 64 | 46 69 6c 65 3a 3a 53 74 |line Std|File::St|
|00000b90| 64 46 69 6c 65 28 63 6f | 6e 73 74 20 46 49 4c 45 |dFile(co|nst FILE|
|00000ba0| 20 2a 66 29 0d 09 3a 20 | 66 46 69 6c 65 28 28 46 | *f)..: |fFile((F|
|00000bb0| 49 4c 45 20 2a 29 66 29 | 2c 0d 09 20 20 66 49 73 |ILE *)f)|,.. fIs|
|00000bc0| 43 6f 70 79 28 66 61 6c | 73 65 29 0d 09 7b 0d 09 |Copy(fal|se)..{..|
|00000bd0| 7d 0d 0d 0d 69 6e 6c 69 | 6e 65 20 53 74 64 46 69 |}...inli|ne StdFi|
|00000be0| 6c 65 3a 3a 53 74 64 46 | 69 6c 65 28 63 6f 6e 73 |le::StdF|ile(cons|
|00000bf0| 74 20 63 68 61 72 20 2a | 66 69 6c 65 4e 61 6d 65 |t char *|fileName|
|00000c00| 2c 20 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 6d 6f |, const |char *mo|
|00000c10| 64 65 29 0d 09 3a 20 66 | 46 69 6c 65 28 66 6f 70 |de)..: f|File(fop|
|00000c20| 65 6e 28 66 69 6c 65 4e | 61 6d 65 2c 20 6d 6f 64 |en(fileN|ame, mod|
|00000c30| 65 29 29 2c 0d 09 20 20 | 66 49 73 43 6f 70 79 28 |e)),.. |fIsCopy(|
|00000c40| 66 61 6c 73 65 29 0d 09 | 7b 0d 09 7d 0d 0d 0d 69 |false)..|{..}...i|
|00000c50| 6e 6c 69 6e 65 20 53 74 | 64 46 69 6c 65 3a 3a 53 |nline St|dFile::S|
|00000c60| 74 64 46 69 6c 65 28 63 | 6f 6e 73 74 20 53 74 64 |tdFile(c|onst Std|
|00000c70| 46 69 6c 65 20 26 61 53 | 74 64 46 69 6c 65 29 0d |File &aS|tdFile).|
|00000c80| 09 3a 20 66 46 69 6c 65 | 28 61 53 74 64 46 69 6c |.: fFile|(aStdFil|
|00000c90| 65 2e 66 46 69 6c 65 29 | 2c 0d 09 20 20 66 49 73 |e.fFile)|,.. fIs|
|00000ca0| 43 6f 70 79 28 74 72 75 | 65 29 0d 09 7b 0d 09 7d |Copy(tru|e)..{..}|
|00000cb0| 0d 0d 0d 69 6e 6c 69 6e | 65 20 46 49 4c 45 20 2a |...inlin|e FILE *|
|00000cc0| 53 74 64 46 69 6c 65 3a | 3a 4f 70 65 6e 28 63 6f |StdFile:|:Open(co|
|00000cd0| 6e 73 74 20 63 68 61 72 | 20 2a 66 69 6c 65 4e 61 |nst char| *fileNa|
|00000ce0| 6d 65 2c 20 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |me, cons|t char *|
|00000cf0| 6d 6f 64 65 29 0d 7b 0d | 09 72 65 74 75 72 6e 20 |mode).{.|.return |
|00000d00| 28 66 46 69 6c 65 20 3d | 20 66 6f 70 65 6e 28 66 |(fFile =| fopen(f|
|00000d10| 69 6c 65 4e 61 6d 65 2c | 20 6d 6f 64 65 29 29 3b |ileName,| mode));|
|00000d20| 0d 7d 0d 0d 0d 69 6e 6c | 69 6e 65 20 53 74 64 46 |.}...inl|ine StdF|
|00000d30| 69 6c 65 3a 3a 6f 70 65 | 72 61 74 6f 72 20 46 49 |ile::ope|rator FI|
|00000d40| 4c 45 20 2a 28 29 20 63 | 6f 6e 73 74 0d 7b 0d 09 |LE *() c|onst.{..|
|00000d50| 72 65 74 75 72 6e 20 28 | 66 46 69 6c 65 29 3b 0d |return (|fFile);.|
|00000d60| 7d 0d 0d 0d 69 6e 6c 69 | 6e 65 20 69 6e 74 20 53 |}...inli|ne int S|
|00000d70| 74 64 46 69 6c 65 3a 3a | 50 75 74 63 28 69 6e 74 |tdFile::|Putc(int|
|00000d80| 20 63 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 74 | c) cons|t.{..ret|
|00000d90| 75 72 6e 20 28 70 75 74 | 63 28 63 2c 20 66 46 69 |urn (put|c(c, fFi|
|00000da0| 6c 65 29 29 3b 0d 7d 0d | 0d 0d 69 6e 6c 69 6e 65 |le));.}.|..inline|
|00000db0| 20 69 6e 74 20 53 74 64 | 46 69 6c 65 3a 3a 50 72 | int Std|File::Pr|
|00000dc0| 69 6e 74 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |int(cons|t char *|
|00000dd0| 73 74 72 29 20 63 6f 6e | 73 74 0d 7b 0d 09 72 65 |str) con|st.{..re|
|00000de0| 74 75 72 6e 20 28 66 70 | 75 74 73 28 73 74 72 2c |turn (fp|uts(str,|
|00000df0| 20 66 46 69 6c 65 29 29 | 3b 0d 7d 0d 0d 0d 69 6e | fFile))|;.}...in|
|00000e00| 6c 69 6e 65 20 69 6e 74 | 20 53 74 64 46 69 6c 65 |line int| StdFile|
|00000e10| 3a 3a 50 75 74 73 28 63 | 6f 6e 73 74 20 63 68 61 |::Puts(c|onst cha|
|00000e20| 72 20 2a 73 74 72 29 20 | 63 6f 6e 73 74 0d 7b 0d |r *str) |const.{.|
|00000e30| 09 50 72 69 6e 74 28 73 | 74 72 29 3b 0d 09 72 65 |.Print(s|tr);..re|
|00000e40| 74 75 72 6e 20 28 50 75 | 74 63 28 27 5c 6e 27 29 |turn (Pu|tc('\n')|
|00000e50| 29 3b 0d 7d 0d 0d 0d 69 | 6e 6c 69 6e 65 20 69 6e |);.}...i|nline in|
|00000e60| 74 20 53 74 64 46 69 6c | 65 3a 3a 50 72 69 6e 74 |t StdFil|e::Print|
|00000e70| 28 69 6e 74 20 76 29 20 | 63 6f 6e 73 74 0d 7b 0d |(int v) |const.{.|
|00000e80| 09 72 65 74 75 72 6e 20 | 28 50 72 69 6e 74 66 28 |.return |(Printf(|
|00000e90| 73 4f 49 46 6d 74 2c 20 | 76 29 29 3b 0d 7d 0d 0d |sOIFmt, |v));.}..|
|00000ea0| 0d 69 6e 6c 69 6e 65 20 | 69 6e 74 20 53 74 64 46 |.inline |int StdF|
|00000eb0| 69 6c 65 3a 3a 50 72 69 | 6e 74 28 65 78 74 65 6e |ile::Pri|nt(exten|
|00000ec0| 64 65 64 20 76 29 20 63 | 6f 6e 73 74 0d 7b 0d 09 |ded v) c|onst.{..|
|00000ed0| 72 65 74 75 72 6e 20 28 | 50 72 69 6e 74 66 28 73 |return (|Printf(s|
|00000ee0| 4f 45 46 6d 74 2c 20 76 | 29 29 3b 0d 7d 0d 0d 0d |OEFmt, v|));.}...|
|00000ef0| 69 6e 6c 69 6e 65 20 73 | 69 7a 65 5f 74 20 53 74 |inline s|ize_t St|
|00000f00| 64 46 69 6c 65 3a 3a 57 | 72 69 74 65 28 63 6f 6e |dFile::W|rite(con|
|00000f10| 73 74 20 76 6f 69 64 20 | 2a 70 2c 20 73 69 7a 65 |st void |*p, size|
|00000f20| 5f 74 20 73 2c 20 73 69 | 7a 65 5f 74 20 6e 29 20 |_t s, si|ze_t n) |
|00000f30| 63 6f 6e 73 74 0d 7b 0d | 09 72 65 74 75 72 6e 20 |const.{.|.return |
|00000f40| 28 66 77 72 69 74 65 28 | 70 2c 20 73 2c 20 6e 2c |(fwrite(|p, s, n,|
|00000f50| 20 66 46 69 6c 65 29 29 | 3b 0d 7d 0d 0d 0d 69 6e | fFile))|;.}...in|
|00000f60| 6c 69 6e 65 20 73 69 7a | 65 5f 74 20 53 74 64 46 |line siz|e_t StdF|
|00000f70| 69 6c 65 3a 3a 57 72 69 | 74 65 28 63 6f 6e 73 74 |ile::Wri|te(const|
|00000f80| 20 76 6f 69 64 20 2a 70 | 2c 20 73 69 7a 65 5f 74 | void *p|, size_t|
|00000f90| 20 6e 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 74 | n) cons|t.{..ret|
|00000fa0| 75 72 6e 20 28 57 72 69 | 74 65 28 70 2c 20 73 69 |urn (Wri|te(p, si|
|00000fb0| 7a 65 6f 66 28 63 68 61 | 72 29 2c 20 6e 29 29 3b |zeof(cha|r), n));|
|00000fc0| 0d 7d 0d 0d 0d 69 6e 6c | 69 6e 65 20 76 6f 69 64 |.}...inl|ine void|
|00000fd0| 20 53 74 64 46 69 6c 65 | 3a 3a 46 6c 75 73 68 28 | StdFile|::Flush(|
|00000fe0| 29 20 63 6f 6e 73 74 0d | 7b 0d 09 66 66 6c 75 73 |) const.|{..fflus|
|00000ff0| 68 28 66 46 69 6c 65 29 | 3b 0d 7d 0d 0d 0d 69 6e |h(fFile)|;.}...in|
|00001000| 6c 69 6e 65 20 63 68 61 | 72 20 2a 53 74 64 46 69 |line cha|r *StdFi|
|00001010| 6c 65 3a 3a 47 65 74 73 | 28 63 68 61 72 20 2a 73 |le::Gets|(char *s|
|00001020| 2c 20 69 6e 74 20 6e 29 | 20 63 6f 6e 73 74 0d 7b |, int n)| const.{|
|00001030| 0d 09 72 65 74 75 72 6e | 20 28 66 67 65 74 73 28 |..return| (fgets(|
|00001040| 73 2c 20 6e 2c 20 66 46 | 69 6c 65 29 29 3b 0d 7d |s, n, fF|ile));.}|
|00001050| 0d 0d 0d 69 6e 6c 69 6e | 65 20 69 6e 74 20 53 74 |...inlin|e int St|
|00001060| 64 46 69 6c 65 3a 3a 47 | 65 74 63 28 29 20 63 6f |dFile::G|etc() co|
|00001070| 6e 73 74 0d 7b 0d 09 72 | 65 74 75 72 6e 20 28 67 |nst.{..r|eturn (g|
|00001080| 65 74 63 28 66 46 69 6c | 65 29 29 3b 0d 7d 0d 0d |etc(fFil|e));.}..|
|00001090| 0d 69 6e 6c 69 6e 65 20 | 69 6e 74 20 53 74 64 46 |.inline |int StdF|
|000010a0| 69 6c 65 3a 3a 55 6e 67 | 65 74 63 28 69 6e 74 20 |ile::Ung|etc(int |
|000010b0| 63 29 20 63 6f 6e 73 74 | 0d 7b 0d 09 72 65 74 75 |c) const|.{..retu|
|000010c0| 72 6e 20 28 75 6e 67 65 | 74 63 28 63 2c 20 66 46 |rn (unge|tc(c, fF|
|000010d0| 69 6c 65 29 29 3b 0d 7d | 0d 0d 0d 69 6e 6c 69 6e |ile));.}|...inlin|
|000010e0| 65 20 73 69 7a 65 5f 74 | 20 53 74 64 46 69 6c 65 |e size_t| StdFile|
|000010f0| 3a 3a 52 65 61 64 28 76 | 6f 69 64 20 2a 70 2c 20 |::Read(v|oid *p, |
|00001100| 73 69 7a 65 5f 74 20 73 | 2c 20 73 69 7a 65 5f 74 |size_t s|, size_t|
|00001110| 20 6e 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 74 | n) cons|t.{..ret|
|00001120| 75 72 6e 20 28 66 72 65 | 61 64 28 70 2c 20 73 2c |urn (fre|ad(p, s,|
|00001130| 20 6e 2c 20 66 46 69 6c | 65 29 29 3b 0d 7d 0d 0d | n, fFil|e));.}..|
|00001140| 0d 69 6e 6c 69 6e 65 20 | 73 69 7a 65 5f 74 20 53 |.inline |size_t S|
|00001150| 74 64 46 69 6c 65 3a 3a | 52 65 61 64 28 76 6f 69 |tdFile::|Read(voi|
|00001160| 64 20 2a 70 2c 20 73 69 | 7a 65 5f 74 20 6e 29 20 |d *p, si|ze_t n) |
|00001170| 63 6f 6e 73 74 0d 7b 0d | 09 72 65 74 75 72 6e 20 |const.{.|.return |
|00001180| 28 52 65 61 64 28 70 2c | 20 73 69 7a 65 6f 66 28 |(Read(p,| sizeof(|
|00001190| 63 68 61 72 29 2c 20 6e | 29 29 3b 0d 7d 0d 0d 0d |char), n|));.}...|
|000011a0| 69 6e 6c 69 6e 65 20 69 | 6e 74 20 53 74 64 46 69 |inline i|nt StdFi|
|000011b0| 6c 65 3a 3a 53 65 65 6b | 28 6c 6f 6e 67 20 6f 66 |le::Seek|(long of|
|000011c0| 66 73 65 74 2c 20 69 6e | 74 20 6f 72 69 67 69 6e |fset, in|t origin|
|000011d0| 29 20 63 6f 6e 73 74 0d | 7b 0d 09 72 65 74 75 72 |) const.|{..retur|
|000011e0| 6e 20 28 66 73 65 65 6b | 28 66 46 69 6c 65 2c 20 |n (fseek|(fFile, |
|000011f0| 6f 66 66 73 65 74 2c 20 | 6f 72 69 67 69 6e 29 29 |offset, |origin))|
|00001200| 3b 0d 7d 0d 0d 0d 69 6e | 6c 69 6e 65 20 76 6f 69 |;.}...in|line voi|
|00001210| 64 20 53 74 64 46 69 6c | 65 3a 3a 52 65 77 69 6e |d StdFil|e::Rewin|
|00001220| 64 28 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 77 |d() cons|t.{..rew|
|00001230| 69 6e 64 28 66 46 69 6c | 65 29 3b 0d 7d 0d 0d 0d |ind(fFil|e);.}...|
|00001240| 69 6e 6c 69 6e 65 20 69 | 6e 74 20 53 74 64 46 69 |inline i|nt StdFi|
|00001250| 6c 65 3a 3a 47 65 74 50 | 6f 73 28 66 70 6f 73 5f |le::GetP|os(fpos_|
|00001260| 74 20 2a 70 29 20 63 6f | 6e 73 74 0d 7b 0d 09 72 |t *p) co|nst.{..r|
|00001270| 65 74 75 72 6e 20 28 66 | 67 65 74 70 6f 73 28 66 |eturn (f|getpos(f|
|00001280| 46 69 6c 65 2c 20 70 29 | 29 3b 0d 7d 0d 0d 0d 69 |File, p)|);.}...i|
|00001290| 6e 6c 69 6e 65 20 69 6e | 74 20 53 74 64 46 69 6c |nline in|t StdFil|
|000012a0| 65 3a 3a 53 65 74 50 6f | 73 28 66 70 6f 73 5f 74 |e::SetPo|s(fpos_t|
|000012b0| 20 2a 70 29 20 63 6f 6e | 73 74 0d 7b 0d 09 72 65 | *p) con|st.{..re|
|000012c0| 74 75 72 6e 20 28 66 73 | 65 74 70 6f 73 28 66 46 |turn (fs|etpos(fF|
|000012d0| 69 6c 65 2c 20 70 29 29 | 3b 0d 7d 0d 0d 0d 69 6e |ile, p))|;.}...in|
|000012e0| 6c 69 6e 65 20 76 6f 69 | 64 20 53 74 64 46 69 6c |line voi|d StdFil|
|000012f0| 65 3a 3a 43 6c 65 61 72 | 45 72 72 28 29 20 63 6f |e::Clear|Err() co|
|00001300| 6e 73 74 0d 7b 0d 09 63 | 6c 65 61 72 65 72 72 28 |nst.{..c|learerr(|
|00001310| 66 46 69 6c 65 29 3b 0d | 7d 0d 0d 0d 69 6e 6c 69 |fFile);.|}...inli|
|00001320| 6e 65 20 42 6f 6f 6c 65 | 61 6e 20 53 74 64 46 69 |ne Boole|an StdFi|
|00001330| 6c 65 3a 3a 49 73 45 4f | 46 28 29 20 63 6f 6e 73 |le::IsEO|F() cons|
|00001340| 74 0d 7b 0d 09 72 65 74 | 75 72 6e 20 28 66 65 6f |t.{..ret|urn (feo|
|00001350| 66 28 66 46 69 6c 65 29 | 29 3b 0d 7d 0d 0d 0d 69 |f(fFile)|);.}...i|
|00001360| 6e 6c 69 6e 65 20 69 6e | 74 20 53 74 64 46 69 6c |nline in|t StdFil|
|00001370| 65 3a 3a 45 72 72 6f 72 | 28 29 20 63 6f 6e 73 74 |e::Error|() const|
|00001380| 0d 7b 0d 09 72 65 74 75 | 72 6e 20 28 66 65 72 72 |.{..retu|rn (ferr|
|00001390| 6f 72 28 66 46 69 6c 65 | 29 29 3b 0d 7d 0d 0d 0d |or(fFile|));.}...|
|000013a0| 23 65 6e 64 69 66 0d 0d | 0d 00 00 00 00 00 00 00 |#endif..|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001410| 00 00 00 00 00 00 05 0a | 05 03 05 08 05 0b 05 0a |........|........|
|00001420| 05 0a 05 03 04 0c 04 0c | 04 05 06 07 0d 04 09 01 |........|........|
|00001430| 09 53 74 64 46 69 6c 65 | 2e 68 02 00 00 00 50 61 |.StdFile|.h....Pa|
|00001440| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 01 |rtSITx..|........|
|00001450| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 a9 80 16 a4 00 00 | 00 00 00 00 01 ac 05 0a |........|........|
|00001480| 05 0a 05 0a 05 0a 05 0e | 05 0a 04 0c 05 0b 04 0c |........|........|
|00001490| 06 03 0e 01 04 03 08 07 | 04 0b 08 07 04 0b 08 07 |........|........|
|000014a0| 04 0f 08 0b 04 0b 05 0a | 05 0e 04 0b 04 0b 08 07 |........|........|
|000014b0| 08 07 08 07 08 0b 08 0b | 08 07 08 07 06 09 08 07 |........|........|
|000014c0| 08 07 08 07 08 07 08 0b | 08 07 05 0c 05 0c 05 0c |........|........|
|000014d0| 02 02 00 00 02 0d 00 0f | 05 0d 01 0e 02 0d 02 0d |........|........|
|000014e0| 02 0d 04 0b 04 0b 03 0c | 05 0a 04 0b 03 0c 08 0a |........|........|
|000014f0| 04 0b 04 0b 03 0c 05 0a | 04 0b 04 0b 03 0c 05 0a |........|........|
|00001500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 7d 3b 0d |...H..Mo|naco.};.|
|00001510| 0d 0d 2f 2f 20 53 74 61 | 6e 64 61 72 64 20 66 69 |..// Sta|ndard fi|
|00001520| 6c 65 20 64 65 73 00 06 | 00 04 00 27 00 02 01 76 |le des..|...'...v|
|00001530| 01 fe 00 27 00 02 01 76 | 01 fe a6 21 fe cb 00 00 |...'...v|...!....|
|00001540| 10 c1 00 00 10 c1 00 00 | 10 3b 01 00 00 00 00 1e |........|.;......|
|00001550| 00 27 00 02 01 76 01 fe | 00 27 00 02 01 76 01 fe |.'...v..|.'...v..|
|00001560| 00 00 10 3b 00 00 00 00 | 00 00 00 00 00 00 00 00 |...;....|........|
|00001570| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 01 14 |.....n..|.n...>..|
|00001580| 17 0c 0c dc 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00001590| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 03 f0 ff ff 00 00 00 4c | 01 1a 37 5c 00 00 00 00 |.......L|..7\....|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+