c2ephp

agents/PRAY/BinaryBlock.php

Go to the documentation of this file.
00001 <?php
00002 require_once(dirname(__FILE__).'/PrayBlock.php');
00003 
00005 
00013 class BinaryBlock extends PrayBlock {
00015     
00016     private $binarydata;
00018 
00020 
00025     public function BinaryBlock($type,$name,$content) {
00026         parent::PrayBlock(null,$name,'',0,$type);
00027         $this->binarydata = $content;
00028     }
00030 
00033     public function Compile() {
00034         return $this->EncodeBlockHeader(strlen($this->binarydata)).$this->binarydata;
00035     }
00036 }
00037 
00038 ?>
 All Classes Files Functions Variables Enumerations