byteLength method

  1. @override
int byteLength()
override

Precompute the byte size of the static ABI typed value @return the byte size of the ABI value @throws IllegalArgumentException if the ABI type is dynamic typed

Implementation

@override
int byteLength() {
  if (elemType is TypeBool) {
    return (length + 7) ~/ 8;
  }
  return elemType.byteLength() * length;
}