读写可变长度数据的说明. [英] Explanation for reading and writing variable-length data.

查看:82
本文介绍了读写可变长度数据的说明.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我发送一个简单的C代码以及读写可变长度数据的说明.可以编写自定义大小的二进制块:如11位或27位等.
因此,基本上,输出是字节对齐的,但是内部结构可以容纳不同长度的数据块.

致以问候
Anshul

Please send me a simple C code and explanation for reading and writing variable-length data.a possibility to write binary chunks of custom size: like 11 bits, or 27 bits, etc.
So, basically, output is byte-aligned, but the inner structure can hold different length data chunks.

With Regards
Anshul

推荐答案

不,我们不是在这里为您做您的工作,如果您是在要求人们不做您的工作的情况下甚至可以自己尝试做,C几乎可以肯定是您学习错误的语言. C#可能是一个更安全的选择.
No, we''re not here to do your work for you, and if you''re at a level of asking people to do your work without being able to even try to do it yourself, C is almost certainly the wrong language for you to learn. C# is probably a safer bet.


对不起,它不能那样工作.

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

尝试一下,告诉您是否遇到问题.
成员将很乐意为您提供帮助.
Sorry, it does not work that way.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


这篇关于读写可变长度数据的说明.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆