Skip to main content

Module ole_container

Module ole_container 

Source
Expand description

OLE 컨테이너 내부 CFB 파싱 (Task #195 단계 7)

BinData/BIN000N.OLE 스트림의 압축 해제 후 바이트는 표준 CFB(Compound File Binary) 컨테이너이다. 이 모듈은 그 내부 스트림(\x02OlePres000, OOXMLChartContents, Contents)을 추출한다.

Structs§

OleContainer
OLE 컨테이너 내용

Enums§

NativeImageKind
OLE 컨테이너에서 추출한 네이티브 이미지 종류

Functions§

all_ole_streams
중첩 OLE CFB 의 모든 스트림을 (경로, 바이트) 로 열거한다. (#4100)
contents_emf_payload
[#7266] Contents 안에서 EMR_HEADER 부터의 EMF 조각을 돌려준다.
detect_native_image
바이트 슬라이스의 선두 매직으로 이미지 포맷을 판별
is_hmapsi_ole_container
한글 글맵시(HMapsi) 계열 OLE 컨테이너인지 빠르게 판별한다.
ole_root_clsid
중첩 OLE CFB 의 루트 CLSID(= OLE 서버 클래스 ID)를 읽는다. (#4097)
parse_equation_contents_script
[#5725] Contents 가 한글 수식 편집기 봉투면 수식 스크립트를 꺼낸다.
parse_ole_container
해제된 BinData 바이트(CFB 컨테이너)에서 주요 스트림 추출
raw_contents_is_emf
[#5724] Contents 페이로드가 EMF 인지 판별 (EMR_HEADER: type=1, offset 40 " EMF").
raw_contents_is_wmf
[#5724] Contents 페이로드가 선두 매직 기준으로 WMF(placeable/표준)인지 판별.
strip_ole_presentation_header
OLE Presentation Stream 헤더를 스킵하고 내부 EMF/메타파일 바이트를 반환한다.