Develop and Download Open Source Software

Recent Changes

2012-04-17
2012-04-03
2012-02-11
2011-11-09

Wiki Guide

Side Bar

  • class SWFEditor function isShapeTagData($tagdata)

説明

タグが DefineShape 系であるのかチェックする。

引数

  • int $tagdata (タグのバイナリデータ)

戻り値

  • boolean true(DefineShape 系タグと判断) or false(それ以外)

使用例

<?php
$swf 
= new SWFEditor();
$swf->input($swfdata);
foreach (
$swf->getTagList() as $seqno => $tagInfo) {
    
$tagdata $swf->getTagData($seqno);
    if (
$swf->isShapeTagData($tagdata) {
        
file_put_contents("$seqno.shape"$tagdata);
    }
}

備考

  • 先頭ヘッダの番号を読んでタグの種類を判断します。
  • バイナリデータの整合性まではチェックしません。

関連


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.