English 中文(简体)
1. 便于使用
原标题:Easy Bit-Level Serialiation

I m 期待一个C++ 至方便 > 高效 /> 序列/unserial bit-size(用户界定) 类型,进入某些结构(可预见模板类别),包括一套参照标准。 我认为,<代码>boost:dynamic_bitset是一个良好的开端,但其中并没有包含用于装饰类型的功能/操作器,例如uint8_t ,uint16_t

我想这样做的是以下例子。

boost::dynamic_bitset bs;
bs.append((uint8_t)123);
bs.append((uint16_t)12345, big_endian);

精简运营商应当得到依赖国家独立最终用户的支持:

bs << (uint8_t)(123);
bs << little_endian;
bs << (uint16_t)(12345); // serialized as little_endian
bs << big_endian;

我也知道Boost.Serialization and Boost.Endian(in Boost Sand Box)。 我愿谈一下扩大至轨道级的情况。

一、导 言 成员职能

void append(Block block);

and

template <typename BlockInputIterator>
void append(BlockInputIterator first, BlockInputIterator last);

对大多数用户来说,其水平太低。 我猜测应在这些新的<代码>应用功能中重新使用。 为了优化更多的表述模板,可以在将连续序列化分成较大的(最小的)区块之前将其分配给<代码>动力学-bitset。

问题回答

我不知道任何图书馆,但很难写下比特·贝德尔/威特雷尔,这完全符合你们的要求。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签