~ubuntu-branches/ubuntu/quantal/smuxi/quantal

« back to all changes in this revision

Viewing changes to lib/db4o-net/Db4objects.Db4o/native/Sharpen/IO/OutputStream.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2012-01-07 12:13:22 UTC
  • mfrom: (1.1.9) (22.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120107121322-x3tav345lpck4ty2
Tags: 0.8.9.1-3
* [7cd3a08] Ignore secur32(.dll) ModuleRef for dh_clideps
* [0055fc3] Added missing ncurses dllmap for smuxi-frontend-stfl.exe

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2004   Versant Inc.   http://www.db4o.com */
 
2
 
 
3
using System.IO;
 
4
 
 
5
namespace Sharpen.IO
 
6
{
 
7
        public class OutputStream : StreamAdaptor, IOutputStream
 
8
        {
 
9
                public OutputStream(Stream stream)
 
10
                        : base(stream)
 
11
                {
 
12
                }
 
13
 
 
14
                public void Write(int i)
 
15
                {
 
16
                        _stream.WriteByte((byte)i);
 
17
                }
 
18
 
 
19
                public void Write(byte[] bytes)
 
20
                {
 
21
                        _stream.Write(bytes, 0, bytes.Length);
 
22
                }
 
23
 
 
24
                public void Write(byte[] bytes, int offset, int length)
 
25
                {
 
26
                        _stream.Write(bytes, offset, length);
 
27
                }
 
28
 
 
29
                public void Flush()
 
30
                {
 
31
                        _stream.Flush();
 
32
                }
 
33
        }
 
34
}