bytes method
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);
}
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);
}