#968: Add bytestring_to_uint16, uint32, uint64 functions
--------------------+------------------------
Reporter: yun | Owner:
Type: Patch | Status: new
Priority: Low | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords: bytestring
--------------------+------------------------
Comment (by seth):
> Ok before I go start implementing stuff, maybe we can agree on the
> function prototype. :)
Great idea. :)
> function bytestring_to_count%(s: string, is_le: bool%): count
Looks good to me.
> Also, most languages only support reading the 8, 16, 32, 64 bit variants
> and use special (optimized) functions for the endianess byte swapping.
> Do we still want to support arbitrary byte lengths?
I think that's fine for now if it fits your use case.
--
Ticket URL: <http://tracker.bro.org/bro/ticket/968#comment:23>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev