Serialization and Bit Operations
Serialization and Bit Operations
CS 2022: Introduction to C
Instructor: Hussam Abu-Libdeh Presented by: Renato Paes Leme
Cornell University (based on slides by Saikat Guha)
Fall 2009, Lecture 10
Serialization and Bit Operations
CS 2022, Fall 2009, Lecture 10
Serialization
Sending data between programs
Disk Network Pipes
Between programs on multiple hosts
Different endianness Different architectures
Serialization and Bit Operations
CS 2022, Fall 2009, Lecture 10
Binary vs. Text
Binary. . .
Compact Easy to encode/decode Faster e.g. IP, TCP, AIM, . . .
Text. . .
Easily debugged (Can be)
self-documenting Arch/Endian independent e.g. HTTP, SMTP, MSN
Serialization and Bit Operations
CS 2022, Fall 2009, Lecture 10
Ok, but how?
What serialization solution to use? tpl library c11n library Google protocol buffers Customized solution
Which standard to use? XML, XDR, protocol buffer, ... Network protocol standards
Serialization and Bit Operations
CS 2022, Fall 2009, Lecture 10
Handling Endianness
Decimal: 3735928559 Binary: 11011110101011011011111011101111 Hex: 0xdeadbeef Big Endian: 0xde 0xad 0xbe 0xef Little Endian: 0xef 0xbe 0xad 0xde
Always in big-endian form when loaded into the CPU
Serialization and Bit Operations
CS 2022, Fall 2009, Lecture 10
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- net object serialization and persistence
- c lab 06 serialization and deserialization of c classes
- toward remote object coherence with compiled object
- recursive method in serialization at j2me
- xml serialization in agile developer
- serialization and bit operations
- c h o o s i n g d a t a f o r r u l e i n t e r c h a n g e
- serialization and sockets
- using cocoon wml and xmlforms
- comparing and contrasting xml features of db2 and cobol
Related searches
- municipal operations and consulting inc
- finance and operations dynamics
- d365 finance and operations roadmap
- windows 10 32 and 64 bit download
- dynamics 365 finance and operations roadmap
- operations manager roles and responsibilities
- operations job titles and descriptions
- finance and operations dynamics 365
- operations manager skills and abilities
- vietnam war operations and battles
- sample space and operations calculator
- business and financial operations occupations