问题描述
我想要做的不是获得有关文件的信息,而是要读取位,并且还能够在帧头中找到位的位置.标头是32位(4字节),这是我想要取回或显示为消息的内容.
我想阅读,编辑.我要读取的位是H,它位于位置(8).
这是帧头样本
What I want to do is not get the information about the file but I want to read the bits and also be able to locate bits positions within the frame header. The header is 32 bits (4 bytes) of which is what I want to get back or displayed as a message.
I want to read it, edit it. The bit i want to read is H which is in position bit (8).
Here is the frame header sample
AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM
,我想返回它们中的每一个,并且还能够定位诸如H的值并返回它的值,并且还可以按位置循环.例如.可以说我还想在位置x处读取一点,或将其设置为一个值.
我尝试过的事情:
到目前为止,我在网上看到的示例仅显示了如何读取标签,而不是位或与我正在寻找的内容类似的东西.
I want to return each of these and alsobe able to locate one such as H and return it value and also loop through by position. eg. Lets say I also want to read a bit at position x and or set it with a value.
What I have tried:
The samples I''ve seen so far online only shown how to read tags not bits or any similar thing to what I''m looking for.
推荐答案
这篇关于如何读取和编辑mp3帧头位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!