These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
||||||||||||||||||||||||||||||||||||||||||||||
「アイドリングを止めるか場所を変えて貰えませんか」と頭を下げつつ丁寧に御願いしても、相手にされなかったり怒鳴られる事さえあります。 割りにあわなすぎるので、よほど長時間騒音が続かない限り我慢します。 自宅が特定され易いので、後で逆恨みされる可能性もありますし。
<?php // SampleParser require_once dirname(__FILE__).'/ByteBit.php'; require_once dirname(__FILE__).'/BitIndexer.php'; require_once dirname(__FILE__).'/BitIndexer/Parser.php'; class SampleParser extends BitIndexer_Parser { function getChunk($data, $offset, $length) { static $i = 0; $ret = array('name' => "sample_$i", 'length' => new ByteBit(0, 14)); $i++; return $ret; } } // sample code $data = 'ABCDE'; $parser = new SampleParser(); $indexer = new BitIndexer($parser); $indexer->parse($data, strlen($data)); $indexer->dump();
% php SampleParser.php * sample_0 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 41 42 AB * sample_1 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 42 43 44 BCD * sample_2 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 44 45 DE