ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.io Namespace / RandomAccessIO Interface / 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.
The number of bytes to read.

In This Topic
    readFully Method (RandomAccessIO)
    In This Topic
    Reads up to 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
     
    
    Sub readFully( _
       ByVal b() As Byte, _
       ByVal off As Integer, _
       ByVal len As Integer _
    ) 
    void readFully( 
       byte[] b,
       int off,
       int len
    )

    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.
    len
    The number of bytes to read.
    Exceptions
    ExceptionDescription
    If the end-of file was reached before getting all the necessary data.
    If an I/O error ocurred.
    See Also