elementSize property

int get elementSize

Implementation

int get elementSize {
  switch (type) {
    case 'float':
    case 'int':
      return 4;
    case 'short':
      return 2;
    case 'byte':
      return 1;
    default:
      return 0;
  }
}