Source/NFX/IO/BufferSegmentReadingStream.cs
/// <summary>
/// Sets byte[] as stream source
/// </summary>
Sets byte[] as stream source
Sets byte [] as stream source
public void BindBuffer(byte[] buffer, long idxStart, long count)
    {
      if (buffer==null)
      throw new NFXIOException(StringConsts.ARGUMENT_ERROR+GetType().Name+".BindBuffer(buffer=null)");
      if (idxStart<0 || idxStart>=buffer.LongLength ||
          count<=0 ||
          idxStart+count>buffer.LongLength)
      throw new NFXIOException(StringConsts.ARGUMENT_ERROR+GetType().Name+".BindBuffer(idxStart={0}, count={1})".Args(idxStart, count));
      UnsafeBindBuffer(buffer, idxStart, count);
    }
public void BindBuffer ( byte [ ] buffer , long idxStart , long count ) { if ( buffer == null ) throw new NFXIOException ( StringConsts . ARGUMENT_ERROR + GetType ( ) . Name + " " ) ; if ( idxStart < 0 || idxStart >= buffer . LongLength || count <= 0 || idxStart + count > buffer . LongLength ) throw new NFXIOException ( StringConsts . ARGUMENT_ERROR + GetType ( ) . Name + " " . Args ( idxStart , count ) ) ; UnsafeBindBuffer ( buffer , idxStart , count ) ; }
Sets byte[] as stream source
Sets byte [] as stream source
buffer
byte[]
idxStart
long
count
long