from static method

URNFlag from(
  1. String value
)

Implementation

static URNFlag from(String value) {
  if (value.isEmpty) {
    throw Status.validate.err(r: 'Unresolved Flag $value');
  }
  return URNFlag(
      v: _substr(value, 0, 2),
      proto: _substr(value, 2, 4),
      codec: _substr(value, 4, 6),
      version: _reduce(_substr(value, 6, 12), 2),
      zone: _substr(value, 12, 14),
      cluster: _substr(value, 14, 16),
      cell: _substr(value, 16, 18),
      group: _substr(value, 18, 20),
      address: _reduce(_substr(value, 20, 32), 3),
      port: _reduce(_substr(value, 32, 37), 5));
}