Open vhdirk opened 1 month ago
I've solved that before by sending in an already read header
into the operand
, but it sounds like that's not really a solution since it's doesn't interpret the header
the second time as just being two bits.
Ah, I indeed thought I had brought this up before, but it's been a while and I couldn't find it anymore :) I'll search some more
Given the recent addition of
seek_from_*
, I was wondering if there are plans to addseek_bits_from_*
, too.?I have this weird protocol that looks somewhat like this:
As you would assume,
opCode
+operand
could be just an enum. However, for some if not most operands, the header isn't so much a header but rather an integral part of the operand itself. I know, it's a weird format.So, it'd be very cool if there was a way to define that the enum id location is
input[2..8]
, and the operand is actually (input[0..2]
, 6 unused bits,input[9...]
)Do you have any ideas on how this could be implemented?