Uint8List indexOf(String typeName) { if (!_idx.containsKey(typeName)) { throw StateError('Missing type index for $typeName.'); } return slebEncode(_idx[typeName] ?? 0); }