safeRead<T> function
Implementation
List<T> safeRead<T>(BufferPipe<T> pipe, int ref) {
if (pipe.length < ref) {
throw 'unexpected end of buffer';
}
return pipe.read(ref);
}
List<T> safeRead<T>(BufferPipe<T> pipe, int ref) {
if (pipe.length < ref) {
throw 'unexpected end of buffer';
}
return pipe.read(ref);
}