FourByteString constructor

FourByteString(
  1. String string
)

Creates a FourByteString from a given string. If the string length is not 4, it defaults to 0, 0, 0, 0.

Implementation

FourByteString(String string)
    : bytes = (string.length == 4) ? utf8.encode(string) : <int>[0, 0, 0, 0];