2008-11-17 18:29:00 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
2008-03-05 09:52:00 -05:00
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
2008-11-17 18:29:00 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
2008-03-05 09:52:00 -05:00
|
|
|
|
2008-11-17 18:29:00 -05:00
|
|
|
///
|
|
|
|
// Microsoft Research, Cambridge
|
|
|
|
//
|
2008-03-05 09:52:00 -05:00
|
|
|
|
|
|
|
using System.Collections;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using Drivers.Net;
|
|
|
|
|
|
|
|
namespace NetStack.Common
|
|
|
|
{
|
|
|
|
public interface IBuffer
|
|
|
|
{
|
|
|
|
int Available { get; }
|
|
|
|
|
|
|
|
bool Read8(out byte x);
|
|
|
|
bool ReadNet16(out ushort x);
|
|
|
|
bool ReadNet32(out uint x);
|
|
|
|
bool ReadNet64(out ulong x);
|
|
|
|
bool ReadBytes(byte []! buf, int index, int count);
|
|
|
|
bool ReadEthernetAddress(out EthernetAddress addr);
|
|
|
|
bool ReadZeroTerminatedString(out string s);
|
|
|
|
|
|
|
|
byte PeekAvailable(int offset);
|
|
|
|
}
|
|
|
|
} // namespace Drivers.Net
|