Method for transferring a packed data structure to an unpacked data structure by copying the packed data using pointer
Abstract
Computer data is transferred from a packed to an unpacked data structure in a computer that enforces aligned memory access and for which the associated compiler lacks a compile-time directive to pack data structures. In an exemplary embodiment, the invention is employed in the pre-processing of Advanced Configuration and Power Interface (ACPI) tables stored in little-endian format for use by a big-endian operating system.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 12.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for transferring computer data from a packed data structure to an unpacked data structure, the method comprising: (a) declaring a first data structure that a compiler interprets as a packed data structure, the first data structure having an associated data type; (b) declaring a second data structure that the compiler interprets as an unpacked data structure; (c) applying the data type associated with the first data structure to a pointer that references the packed data structure; and (d) copying the computer data from the packed data structure to the second data structure using the po
- Claim 2Depends on #1
The method of claim 1 , wherein step (c) comprises a cast.
- Claim 3Depends on #1
The method of claim 1 , wherein the packed data structure comprises at least two members of unequal size.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (1)
Non-Patent Literature (5)
- cs.umd.edu/class/spring2003/cmsc311/Notes/BitOp/cast.html.*
- David Woodman, "summary of obfuscated code request",Dec. 5, 1989, comp.lang.c.*
- eskimo.com/~scs/cclass/int/sx4bb.html.*
- Jeffrey Turner, "Packing bit field and alignment", Jan. 21, 2001, comp.lang.c.*
- Kaz Kylheku, "int pointer to int array", Jun. 17, 1997, comp.lang.c.*