aboutsummaryrefslogtreecommitdiff
path: root/pages/projects/binary_mapping.md
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-01-17 20:44:31 +0100
committerAdrian Kummerlaender2017-01-17 20:44:31 +0100
commit9bb990c9a663edc43aebb87ed84b00e6d90685c0 (patch)
treefcb40f5c4f94f7e1b89d3495a20d82e4cbd6db90 /pages/projects/binary_mapping.md
parentb84e7973d91e066aa3c0e9e5660e30401916fd5f (diff)
downloadblog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.gz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.bz2
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.lz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.xz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.zst
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.zip
Update markdown syntax to use pandoc's peculiarities
Diffstat (limited to 'pages/projects/binary_mapping.md')
-rw-r--r--pages/projects/binary_mapping.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/pages/projects/binary_mapping.md b/pages/projects/binary_mapping.md
index a53324d..91acae5 100644
--- a/pages/projects/binary_mapping.md
+++ b/pages/projects/binary_mapping.md
@@ -21,7 +21,7 @@ A explanation of an earlier version of this template library can be found on thi
## Usage example
-~~~
+```cpp
BinaryMapping::Container<
BinaryMapping::Tuple<
BinaryMapping::LittleEndian,
@@ -40,8 +40,7 @@ for ( auto&& tuple : container ) {
}
std::uint32_t test = container.at(5).get<0>();
-~~~
-{: .language-cpp}
+```
The code listed above defines a container of a tuple consisting of a `std::uint32_t`, `std::int16_t`, 3-byte and `std::uint8_t` field with little endianess, instantiates a buffer containing ten instances of this tuple, iterates through all 10 elements, gives them values, transparently converts to the correct endianess and extracts the value of the first field of the fifth tuple contained in the buffer. In short: BinaryMapping is a library that abstracts endianess aware serializing of binary structures into structures, containers and iterators. If you are interested in further details of the usage of all features provided by BinaryMapping don't hesitate to check out the [documentation].