view method

dynamic view(
  1. dynamic buffer,
  2. dynamic offset,
  3. dynamic length
)

Implementation

view(buffer, offset, length) {
  if (type == 5120) {
    return Int8List.view(buffer, offset, length);
  } else if (type == 5121) {
    return Uint8List.view(buffer, offset, length);
  } else if (type == 5122) {
    return Int16List.view(buffer, offset, length);
  } else if (type == 5123) {
    return Uint16List.view(buffer, offset, length);
  } else if (type == 5125) {
    return Uint32List.view(buffer, offset, length);
  } else if (type == 5126) {
    return Float32List.view(buffer, offset, length);
  } else {
    throw (" GLTFHelper GLTypeData view type: ${type} is not support ...");
  }
}