SplitStreamContainer.Read
Read(byte[])
读取字节以填充指定的字节缓冲区。
public override int Read(byte[] bytes)
| 参数 | 类型 | 描述 |
|---|---|---|
| bytes | Byte[] | 要填充的字节。 |
返回值
读取的字节数。如果流中的字节不足,此值可能小于缓冲区中的字节数。
另请参见
- class SplitStreamContainer
- namespace Aspose.Imaging
- assembly Aspose.Imaging
Read(byte[], int, int)
从当前流读取一系列字节,并将流中的位置前移读取的字节数。
public override int Read(byte[] buffer, int offset, int count)
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | Byte[] | 字节数组。当此方法返回时,缓冲区包含指定的字节数组,其中 offset 到 (offset + count - 1) 之间的值已被从当前源读取的字节替换。 |
| 偏移 | Int32 | 在 buffer 中的零基字节偏移量,指示从何处开始存储从当前流读取的数据。 |
| count | Int32 | 从当前流读取的最大字节数。 |
返回值
读取到缓冲区的字节总数。如果当前可用的字节不足请求的字节数,则可能少于请求的字节数;如果已到达流的末尾,则为零 (0)。
另请参见
- class SplitStreamContainer
- namespace Aspose.Imaging
- assembly Aspose.Imaging