ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.util Namespace / ISRandomAccessIO Class / readFully Method
The buffer into which the data is to be read. It must be long enough.
The index in 'b' where to place the first byte read.

In This Topic
    readFully Method (ISRandomAccessIO)
    In This Topic
    Reads 'len' bytes of data from this file into an array of bytes. This method reads repeatedly from the stream until all the bytes are read. This method blocks until all the bytes are read, the end of the stream is detected, or an exception is thrown.
    Syntax
    'Declaration
     
    
    Public Overridable Sub readFully( _
       ByVal b() As Byte, _
       ByVal off As Integer, _
       ByVal n As Integer _
    ) 
    public virtual void readFully( 
       byte[] b,
       int off,
       int n
    )

    Parameters

    b
    The buffer into which the data is to be read. It must be long enough.
    off
    The index in 'b' where to place the first byte read.
    n
    Exceptions
    ExceptionDescription
    If the end-of file was reached before getting all the necessary data.
    If an I/O error ocurred.
    See Also