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

« back to all changes in this revision

Viewing changes to debian/missing-sources/plupload-1.5.7/csharp/Plupload/FJCore/IO/BinaryWriter.cs

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-09-04 23:18:58 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20130904231858-nljmn1buzswh63jk
Tags: 3.6+dfsg-1
* New upstream release.
* Improve wp-settings to verify that $_SERVER['HTTP_X_FORWARDED_PROTO']
  exists before accessing it (avoids a PHP notice).
  Thanks to Paul Dreik <slask@pauldreik.se> for the report and the patch.
* Document in README.Debian the need to login to /wp-admin/ to complete
  an upgrade.
* Drop useless debian/README.source
* Drop 008CVE2008-2392.patch since upstream now disables unfiltered
  uploads by default. See http://core.trac.wordpress.org/ticket/10692
* Drop 009CVE2008-6767.patch since the backto parameter is validated
  against a whitelist, and externally triggered upgrades are not a
  security problem as long as they work.
* Update debian/missing-sources with latest versions.
* Update upstream l10n.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/// Copyright (c) 2008 Jeffrey Powers for Fluxcapacity Open Source.
 
2
/// Under the MIT License, details: License.txt.
 
3
 
 
4
using System;
 
5
using System.Text;
 
6
using System.IO;
 
7
 
 
8
namespace FluxJpeg.Core.IO
 
9
{
 
10
    /// <summary>
 
11
    /// A Big-endian binary writer.
 
12
    /// </summary>
 
13
    internal class BinaryWriter
 
14
    {
 
15
        private Stream _stream;
 
16
 
 
17
        internal BinaryWriter(Stream stream)
 
18
        {
 
19
            _stream = stream;
 
20
        }
 
21
 
 
22
        internal void Write(byte[] val)
 
23
        {
 
24
            _stream.Write(val, 0, val.Length);
 
25
        }
 
26
 
 
27
        internal void Write(byte[] val, int offset, int count)
 
28
        {
 
29
            _stream.Write(val, offset, count);
 
30
        }
 
31
 
 
32
 
 
33
        internal void Write(short val)
 
34
        {
 
35
            _stream.WriteByte((byte)(( val >> 8 ) & 0xFF));
 
36
            _stream.WriteByte((byte)(val & 0xFF));
 
37
        }
 
38
 
 
39
        internal void Write(byte val)
 
40
        {
 
41
            _stream.WriteByte(val);
 
42
        }
 
43
 
 
44
    }
 
45
}