PsdSectionReader
PsdSectionReader
개요
PsdSectionReader은(는) Aspose.Psd FOSS에서 Python용 클래스입니다.
이 구현에 의해 메모리에 저장된 PSD/PSB 섹션에 대해 제한된 읽기를 제공합니다.
이 클래스는 Python 프로그램의 PsdSectionReader 객체에 대해 5개의 메서드를 선언합니다. 사용 가능한 메서드에는 ReadBytes, get_memory_backed_length, get_nested_memory_backed_length, read_bytes, validate_signed_length가 포함됩니다. 공개 멤버는 Aspose.Psd FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
read_bytes(reader: BigEndianReader, length: int, section_name: str) → bytes | 스트림 경계와 메모리 내 크기 제한을 검증한 후 선언된 섹션 페이로드를 읽습니다. |
ReadBytes(reader: BigEndianReader, length: int, section_name: str) → bytes | 이 PsdSectionReader 인스턴스에서 ReadBytes(reader, length, section_name) 를 호출합니다. |
get_memory_backed_length(reader: BigEndianReader, length: int, section_name: str) → int | 선언된 섹션 길이를 검증하고 해당 메모리 내 배열 크기를 반환합니다. |
validate_signed_length(length: int, section_name: str) → int | 제한된 섹션에 속하는 부호 있는 길이 필드를 검증합니다. |
get_nested_memory_backed_length(reader: BigEndianReader, length: int, section_end: int, section_name: str) → int | 중첩된 페이로드가 이미 제한된 포함 섹션 안에 머무르는지 검증합니다. |