Answer the question
In order to leave comments, you need to log in
How to work with binary data?
There is a sample such lines on Node.js
var header = {};
var offset = 0;
var flags = buf.readUInt8(offset); offset += 1;
header.PRF = (flags & parseInt('11000000', 2)) >> 6;
Answer the question
In order to leave comments, you need to log in
Which libraries to use: numpy, ctruct?
>>> 0b10101 & 0b11 == 1
True
>>>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question