encodeAnnotation method

Uint8List encodeAnnotation(
  1. String ann
)

Implementation

Uint8List encodeAnnotation(String ann) {
  if (ann == 'query') {
    return Uint8List.fromList([1]);
  } else if (ann == 'oneway') {
    return Uint8List.fromList([2]);
  } else if (ann == 'composite_query') {
    return Uint8List.fromList([3]);
  }
  throw StateError('invalid function annotation.');
}