C# Class GitSharp.Core.Transport.PacketLineOut

Write Git style pkt-line formatting to an output stream. This class is not thread safe and may issue multiple writes to the underlying stream for each method call made. This class performs no buffering on its own. This makes it suitable to interleave writes performed by this class with writes performed directly against the underlying OutputStream.
Show file Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
End ( ) : void
Flush ( ) : void
PacketLineOut ( Stream i ) : System
WriteChannelPacket ( int channel, byte buf, int off, int len ) : void
WritePacket ( byte packet ) : void
WriteString ( string s ) : void

Private Methods

Method Description
formatLength ( int w ) : void

Method Details

End() public method

public End ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

PacketLineOut() public method

public PacketLineOut ( Stream i ) : System
i System.IO.Stream
return System

WriteChannelPacket() public method

public WriteChannelPacket ( int channel, byte buf, int off, int len ) : void
channel int
buf byte
off int
len int
return void

WritePacket() public method

public WritePacket ( byte packet ) : void
packet byte
return void

WriteString() public method

public WriteString ( string s ) : void
s string
return void