public int Write (IntPtr ptr, int count) { if (Expandable == false) throw new Exception ("This should not happen."); blocks.Write (ptr, count); length += count; return count; }