]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/libraries/MOBIClass/FileTri.php
4 * Description of FileTri
8 class FileTri
extends FileObject
{
12 * Make a tri-byte to be stored in a file
15 public function __construct($n = 0){
16 parent
::__construct(3);
20 public function get(){
24 public function set($value){
25 $this->data
= intval($value) & 0xFFFFFF;
28 public function serialize() {
29 return $this->triToString($this->data
);
32 public function unserialize($data) {
33 __construct($this->toInt($data));
37 public function __toString(){
38 return "FileTri: {".$this->triAsString($this->data)."}";