You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function bytestring_to_count%(s: string, is_le: bool &default=F%): count
Please implement inputs for bytestring with length of 3, 5, 6, 7. This is useful for embedded devices that optimizes for space as use as minimum as needed.
The text was updated successfully, but these errors were encountered:
The question I have is related to zero-padding on those strings. What should those turn into? Should the former turn into 0x00FFFF00 or 0xFFFF0000? The latter test currently zero-pads to the right so it turns into 0xFFFF0000 (65535 on an LE system), maybe as expected?
Hi Tim. This is a great question. If bytestring_to_count("\x00\xff\xff", F) is targeting big endian, then wouldn't the padding be to the left (e.g. "\x00\x00\xff\xff")?
zeek/src/zeek.bif
Line 2667 in e5db1f0
Please implement inputs for bytestring with length of 3, 5, 6, 7. This is useful for embedded devices that optimizes for space as use as minimum as needed.
The text was updated successfully, but these errors were encountered: