diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-29 11:05:20 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-29 11:05:20 +0000 |
| commit | 509d48d3a12c3477c893456549e0d052d9e5e9f9 (patch) | |
| tree | db601f414a0f65e79bd74a3957fc8a78f918df12 /dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs | |
| parent | a6808589c1ce06773f599bc28fe90938e2dcd60f (diff) | |
| download | qpid-python-509d48d3a12c3477c893456549e0d052d9e5e9f9.tar.gz | |
(Patch supplied by Tomas Restrepo) QPID-312.diff applied. This converts Javadoc copied accross from the orignal Java code to .Net format. Renames some files/classes/methods to use .Net conventions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501006 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs')
| -rw-r--r-- | dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs b/dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs index b11d6b6b14..2de3a13560 100644 --- a/dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs +++ b/dotnet/Qpid.Buffer/SimpleByteBufferAllocator.cs @@ -23,11 +23,11 @@ using System.Runtime.CompilerServices; namespace Qpid.Buffer { - /** - * A simplistic {@link ByteBufferAllocator} which simply allocates a new - * buffer every time. - */ - public class SimpleByteBufferAllocator : ByteBufferAllocator + /// <summary> + /// A simplistic <see cref="ByteBufferAllocator"/> which simply allocates a new + /// buffer every time + /// </summary> + public class SimpleByteBufferAllocator : IByteBufferAllocator { private const int MINIMUM_CAPACITY = 1; @@ -35,7 +35,7 @@ namespace Qpid.Buffer { } - public ByteBuffer allocate( int capacity, bool direct ) + public ByteBuffer Allocate( int capacity, bool direct ) { FixedByteBuffer nioBuffer; if( direct ) @@ -49,12 +49,12 @@ namespace Qpid.Buffer return new SimpleByteBuffer( nioBuffer ); } - public ByteBuffer wrap( FixedByteBuffer nioBuffer ) + public ByteBuffer Wrap( FixedByteBuffer nioBuffer ) { return new SimpleByteBuffer( nioBuffer ); } - public void dispose() + public void Dispose() { } |
