메인 콘텐츠로 건너뛰기
이 인터페이스는 읽기 스트림용 인터페이스입니다. 이 인터페이스와 그 모든 메서드는 클라이언트 측에 구현됩니다. 예를 들어, 읽기 스트림은 파일에서 읽도록 구현할 수 있습니다.

Methods

NameDescription
Close스트림 사용을 종료합니다. 할당된 모든 리소스를 해제할 수 있습니다.
Read스트림에서 지정된 바이트 수를 읽습니다.

입력 매개변수

이 객체는 다음 메서드의 입력 매개변수로 전달됩니다:

샘플

class ReadStream : IReadStream
{
 private MemoryStream fileBytes = null;
 public ReadStream( byte[] _fileBytes )
 {
  fileBytes = new MemoryStream( _fileBytes );
 }
 public void Close()
 {
  fileBytes.Close();
 }
 public int Read( out byte[] data, int count )
 {
  data = new byte[count];
  int readBytes = fileBytes.Read( data, 0, count );
  return readBytes;
 }
}

비고

Linux에서는 엔진 객체가 out-of-process 서버로 로드된 경우 이 인터페이스가 작동하지 않습니다.

참고 항목

FRDocument IWriteStream IFileWriter