Class IndependentRandomAccessSource
A RandomAccessSource that is wraps another RandomAccessSource but does not propagate close().
public class IndependentRandomAccessSource : IRandomAccessSource
- Inheritance
-
IndependentRandomAccessSource
- Implements
- Inherited Members
Remarks
A RandomAccessSource that is wraps another RandomAccessSource but does not propagate close(). This is useful when passing a RandomAccessSource to a method that would normally close the source.
Constructors
IndependentRandomAccessSource(IRandomAccessSource)
Constructs a new IndependentRandomAccessSource object
public IndependentRandomAccessSource(IRandomAccessSource source)
Parameters
source
IRandomAccessSourcethe source
Methods
Close()
Does nothing - the underlying source is not closed
public virtual void Close()
Get(long)
public virtual int Get(long position)
Parameters
position
long
Returns
Get(long, byte[], int, int)
public virtual int Get(long position, byte[] bytes, int off, int len)
Parameters
Returns
Length()
public virtual long Length()