PageRenderTime 55ms CodeModel.GetById 53ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/src/Manos.IO/Manos.IO.Libev/EventedByteStream.cs

http://github.com/jacksonh/manos
C# | 23 lines | 19 code | 4 blank | 0 comment | 0 complexity | 8e39f04d584d769abd777dddf6348d13 MD5 | raw file
 1using System;
 2
 3namespace Manos.IO.Libev
 4{
 5	abstract class EventedByteStream : EventedStream<ByteBuffer>, IByteStream
 6	{
 7		internal EventedByteStream (Context context, IntPtr handle)
 8			: base (context, handle)
 9		{
10		}
11		
12		public void Write (byte[] data)
13		{
14			Write (new ByteBuffer (data));
15		}
16		
17		protected override long FragmentSize (ByteBuffer data)
18		{
19			return data.Length;
20		}
21	}
22}
23