Next: Structuring Data, Previous: Setting Up, Up: Top [Contents][Index]
In this chapter you will learn how to shuffle binary data around with poke, in terms of fundamental predefined entities: bits, bytes, integers, and the like.
| • Binary Files | Text vs. binary. | |
| • Files as IO Spaces | Poking files. | |
| • Dumping File Contents | A first look at a file’s bytes. | |
| • Poking Bytes | Reading, manipulating and writing bytes. | |
| • Values and Variables | Values can be stored in variables. | |
| • From Bytes to Integers | Building numbers with bytes. | |
| • Big and Little Endians | Pick your egg. | |
| • Negative Integers | Going behind 0. | |
| • Weird Integers | Incomplete bytes in numbers. | |
| • Unaligned Integers | IO spaces are bit-oriented. | |
| • Integers of Different Sizes | Promotion of integers in expressions. | |
| • Offsets and Sizes | United values. | |
| • Buffers as IO Spaces | Poking memory buffers. | |
| • Copying Bytes | Moving data between IO spaces. | |
| • Saving Buffers in Files | From memory to files. | |
| • Character Sets | ASCII, Unicode, … | |
| • From Bytes to Characters | Working with ASCII codes | |
| • ASCII Strings | NULL-terminated strings. | |
| • From Strings to Characters | Indexing strings. | |
| • Strings are not Arrays | Converting between strings and arrays. |
Next: Structuring Data, Previous: Setting Up, Up: Top [Contents][Index]