pullVector method
Implementation
Uint8List pullVector(int lenBytes) {
int vecLen;
if (lenBytes == 1) {
vecLen = pullUint8();
} else if (lenBytes == 2) {
vecLen = pullUint16();
} else if (lenBytes == 3) {
vecLen = pullUint24();
} else {
throw ArgumentError('Vector length must be 1, 2, or 3 bytes');
}
return pullBytes(vecLen);
}