From 4188f38ad56d7ba2ea46e94403f305243514f80c Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 24 Jul 2014 15:49:36 +0200 Subject: add pdf and mobi libraries --- .../libraries/send2kindle/MOBIClass/FileShort.php | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 inc/3rdparty/libraries/send2kindle/MOBIClass/FileShort.php (limited to 'inc/3rdparty/libraries/send2kindle/MOBIClass/FileShort.php') diff --git a/inc/3rdparty/libraries/send2kindle/MOBIClass/FileShort.php b/inc/3rdparty/libraries/send2kindle/MOBIClass/FileShort.php new file mode 100644 index 00000000..9921ea82 --- /dev/null +++ b/inc/3rdparty/libraries/send2kindle/MOBIClass/FileShort.php @@ -0,0 +1,41 @@ +set($n); + } + + public function get(){ + return $this->data; + } + + public function set($value){ + $this->data = intval($value) & 0xFFFF; + } + + public function serialize() { + return $this->shortToString($this->data); + } + + public function unserialize($data) { + __construct($this->toInt($data)); + } + + + public function __toString(){ + return "FileShort: {".$this->shortAsString($this->data)."}"; + } +} +?> -- cgit v1.2.3