Snippet - byte[] split and parse tools

byte[] split and parse tools

inspired by http://www.ghielectronics.com/community/forum/topic?id=11534

to process utf8 byte arrays (from gps or http.respose o.e.) without encoding a string.
instead of using the slowly string operations to split and prase received data I created a ByteArrayTools class to process directly the byte[] data

  1. get the Index of a special symbol / delimiter
  2. split the byte[] to a array of byte[] separated by delimiter
  3. parse to string
  4. parse to integer
  5. parse to single
  6. parse to double
1 Like

Very nice. Extra useful for those who do not have the native implementation.

VB-Daniel - Very good! It’s good to see VB versions of utilities on the forum.