bytes method

Uint8List bytes(
  1. GgufTensor t
)

Implementation

Uint8List bytes(GgufTensor t) {
  if (t.offset < 0 || t.bytes < 0 || t.bytes > _file.length - t.offset) {
    throw FormatException('GGUF tensor exceeds file: ${t.name}');
  }
  return _file.bytes(t.offset, t.bytes);
}