Skip to content

Instantly share code, notes, and snippets.

@bschwind
Created April 14, 2012 01:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bschwind/2381450 to your computer and use it in GitHub Desktop.
Save bschwind/2381450 to your computer and use it in GitHub Desktop.
Network Buffer for organizing network stream data
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GraphicsToolkit.Networking
{
/// <summary>
/// This class helps organize the data required for
/// reading and writing to a network stream
/// </summary>
public class NetworkBuffer
{
public byte[] WriteBuffer;
public byte[] ReadBuffer;
public int CurrentWriteByteCount;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment