void write(List<int> bytes) { int blength = bytes.length; data.addAll(bytes); offset = offset! + blength; pad(); }