示例#1
0
 public override long Seek(long offset, SeekOrigin origin)
 {
     //NS_SEEK_SET   0   Specifiesthat the offset is relative to the start of the stream.
     //NS_SEEK_CUR   1   Specifies that the offset is relative to the current position in the stream.
     //NS_SEEK_END   2   Specifies that the offset is relative to the end of the stream.
     _seekableStream.Seek((int)origin, (int)offset);
     return(_seekableStream.Tell());
 }