Esempio n. 1
0
 /// <summary>
 /// Constructs a stream from the blocks passed.
 /// </summary>
 /// <param name="blocks">The blocks.</param>
 /// <remarks>
 /// The stream size will be set to the size of the blocks.
 /// </remarks>
 public EnhancedBlockStream(params Block[] blocks)
     : base(new BlockStream(blocks))
 {
     innerStream = (BlockStream)base.InnerStream;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a stream from the blocks passed.
 /// </summary>
 /// <param name="blocks">The blocks.</param>
 /// <remarks>
 /// The stream size will be set to the size of the blocks.
 /// </remarks>
 public EnhancedBlockStream(BlockArray blocks)
     : base(new BlockStream(blocks))
 {
     innerStream = (BlockStream)base.InnerStream;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructs a stream of the specified size using the
 /// specified block size and offset.
 /// </summary>
 /// <param name="size">The stream size in bytes.</param>
 /// <param name="blockSize">The block size in bytes.</param>
 /// <param name="blockOffset">Bytes to be reserved at the beginning of each new block.</param>
 /// <remarks>
 /// See <see cref="LillTek.Common.BlockArray"/> for more information on
 /// the value and use of the blockOffset prarmeter.
 /// </remarks>
 public EnhancedBlockStream(int size, int blockSize, int blockOffset)
     : base(new BlockStream(size, blockSize, blockOffset))
 {
     innerStream = (BlockStream)base.InnerStream;
 }
Esempio n. 4
0
 /// <summary>
 /// Constructs a stream of the specified size using the default
 /// block size.
 /// </summary>
 /// <param name="size">The stream size in bytes.</param>
 public EnhancedBlockStream(int size)
     : base(new BlockStream(size))
 {
     innerStream = (BlockStream)base.InnerStream;
 }
Esempio n. 5
0
 /// <summary>
 /// Constructs a zero length stream with default block size.
 /// </summary>
 public EnhancedBlockStream()
     : base(new BlockStream())
 {
     innerStream = (BlockStream)base.InnerStream;
 }
Esempio n. 6
0
 /// <summary>
 /// Constructs a stream from a byte array..
 /// </summary>
 /// <param name="buffer">The byte array.</param>
 /// <remarks>
 /// The stream size will be set to the size of the array.
 /// </remarks>
 public EnhancedBlockStream(byte[] buffer)
     : base(new BlockStream(buffer))
 {
     innerStream = (BlockStream)base.InnerStream;
 }