~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to debian/missing-sources/plupload-1.5.4/flash/plupload/src/com/mxi/BinaryReader.as

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog, Raphaël Hertzog, Martin Bagge / brother
  • Date: 2012-06-16 01:19:20 UTC
  • mfrom: (1.2.22)
  • Revision ID: package-import@ubuntu.com-20120616011920-ivqcktmjehq4gpal
Tags: 3.4+dfsg-1
* New upstream release. Closes: #677534

[ Raphaël Hertzog ]
* [a1c0409] Refresh and update all patches to correctly apply on version
  3.4.
* [3804496] Update debian/missing-sources/ to match the current versions of
  embedded javascript and flash files.
* [185b051] Drop the old "default" theme (and its French translation)
* [966ce6c] Grab latest translations
* [1983326] Update Standards-Version to 3.9.3 (no change).
* [29c48b6] Increase debhelper compat level to 9.
* [73e16d0] Replace debian/dh_linktree by the packaged version.
* [359b660] Update debian/wordpress.linktrees to match latest developments.
* [645b650] Let setup-mysql lowercase the FQDN since the configuration
  scheme expects this. Thanks to Chris Butler <chrisb@debian.org> for the
  report (Closes: #658395)
* [5433e90] Fix setup-mysql to avoid creating /srv/www with restricted
  permissions (Closes: #616400)
* [dd2ef1d] Move back wp-config.php to /usr/share/wordpress/ since it's only
  a dispatcher to the real configuration file (Closes: #592502)
* [b602372] Improve wp-config.php so that WordPress works behind an https
  reverse-proxy.
* [ba0b729] Entirely update and rewrite README.debian. (Closes: #575985,
  #639980)
* [683a908] Update wp-config.php to not redefine constants which have
  already been set.  Thanks to Richard van den Berg <richard@vdberg.org> for
  the report. (Closes: #613283)
* [315eb68] Let wordpress-l10n depend on the same version than wordpress.
  (Closes: #623557)
* [a6d0b9f] Default configuration now sets WP_CONTENT_DIR to
  /var/lib/wordpress/wp-content. And the package provides this new directory
  appropriately setup with write rights to www-data on blogs.dir and
  uploads. themes and plugins are root-owned directories with symlinks
  pointing back to the default themes and plugins. (Closes: #675469)
* [4db98c6] Update setup-mysql to use WP_CONTENT_DIR (and no longer use
  $upload_dir). (Closes: #658508)
* [a1970da] Extend debian/wordpress.linktrees to cover swfobject.js.
* [8d46dab] Use dpkg-maintscript-helper to drop obsolete
  /etc/wordpress/wp-config.php

[ Martin Bagge / brother ]
* [56d0a34] Improve the setup script to be able to use a remote MySQL
  server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *
 
3
 * Copyright 2011, Moxiecode Systems AB
 
4
 * Released under GPL License.
 
5
 *
 
6
 * License: http://www.plupload.com/license
 
7
 * Contributing: http://www.plupload.com/contributing
 
8
 */
 
9
 
 
10
package com.mxi {
 
11
        import flash.utils.ByteArray;
 
12
        import flash.utils.Endian;
 
13
        
 
14
        public class BinaryReader extends ByteArray {
 
15
                
 
16
                public function init(binData:ByteArray):void {
 
17
                        clear();
 
18
                        endian = Endian.BIG_ENDIAN;
 
19
                        writeBytes(binData);
 
20
                }
 
21
                
 
22
                public function II(... args):* {
 
23
                        if (!args.length)
 
24
                                return endian == Endian.LITTLE_ENDIAN ? true : false;
 
25
                        else
 
26
                                endian = args[0] == true ? Endian.LITTLE_ENDIAN : Endian.BIG_ENDIAN;
 
27
                }
 
28
                
 
29
                public function SEGMENT(... args):ByteArray {
 
30
                        var seg:ByteArray = new ByteArray();
 
31
                        
 
32
                        switch (args.length) {
 
33
                                
 
34
                                case 1: 
 
35
                                        position = args[0];
 
36
                                        readBytes(seg, 0);
 
37
                                        break;
 
38
                                
 
39
                                case 2:
 
40
                                        position = args[0];
 
41
                                        readBytes(seg, 0, args[1]);
 
42
                                        break;
 
43
                                        
 
44
                                case 3:
 
45
                                        position = args[0] + args[1];
 
46
                                        readBytes(seg);
 
47
                                        position = args[0];
 
48
                                        writeBytes(args[2]);
 
49
                                        writeBytes(seg);
 
50
                                        break;
 
51
                                
 
52
                                default:
 
53
                                        position = 0;
 
54
                                        readBytes(seg, 0, length);
 
55
                        }
 
56
                        
 
57
                        return seg;
 
58
                }
 
59
                
 
60
                public function BYTE(idx:int):uint {
 
61
                        position = idx;
 
62
                        return readUnsignedByte();
 
63
                }
 
64
                
 
65
                public function SHORT(idx:int):uint {
 
66
                        position = idx;
 
67
                        return readUnsignedShort();
 
68
                }
 
69
                
 
70
                public function LONG(idx:int, ... args):* {
 
71
                        position = idx;
 
72
                        if (!args.length) 
 
73
                                return readUnsignedInt();
 
74
                        else
 
75
                                writeUnsignedInt(args[0]);
 
76
                }
 
77
                
 
78
                public function SLONG(idx:uint):int { 
 
79
                        position = idx;
 
80
                        return readInt(); 
 
81
                }
 
82
                
 
83
                public function STRING(idx:uint, size:uint):String {
 
84
                        position = idx;
 
85
                        return readUTFBytes(size);
 
86
                }
 
87
                
 
88
                
 
89
        }
 
90
        
 
91
        
 
92
}