[Bro] String as Vector of Bytes

Siwek, Jon jsiwek at illinois.edu
Fri May 23 10:41:38 PDT 2014

On May 23, 2014, at 12:03 PM, M K <mkhan04 at gmail.com> wrote:

> there any function I'm missing that converts a string to a vector of count or something similar?

bytestring_to_count() [1] may help.  E.g.:

	local s = "testing";
	for ( c in s ) print bytestring_to_count(c);

- Jon

[1] http://bro.org/sphinx-git/scripts/base/bif/bro.bif.bro.html?highlight=bytestring_to_count#id-bytestring_to_count

More information about the Bro mailing list