private void ReadFully(byte[] b, int offset, int count) { while (count > 0) { int n = raf.Read(b, offset, count); if (n <= 0) throw new IOException(MessageLocalization.GetComposedMessage("insufficient.data")); count -= n; offset += n; } }