iTextSharp.text.pdf.codec.PngImage.ReadFully C# (CSharp) Метод

ReadFully() приватный статический Метод

private static ReadFully ( Stream inp, byte b, int offset, int count ) : void
inp Stream
b byte
offset int
count int
Результат void
        private static void ReadFully(Stream inp, byte[] b, int offset, int count)
        {
            while (count > 0) {
                int n = inp.Read(b, offset, count);
                if (n <= 0)
                    throw new IOException(MessageLocalization.GetComposedMessage("insufficient.data"));
                count -= n;
                offset += n;
            }
        }