C# Class GitSharp.Core.Util.TemporaryBuffer

A fully buffered output stream using local disk storage for large data. Initially this output stream buffers to memory, like ByteArrayOutputStream might do, but it shifts to using an on disk temporary file if the output gets too large. The content of this buffered stream may be sent to another OutputStream only After this stream has been properly closed by close().
Inheritance: Stream
Mostra file Open project: jagregory/GitSharp Class Usage Examples

Public Properties

Property Type Description
DEFAULT_IN_CORE_LIMIT int

Public Methods

Method Description
Dispose ( ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
TemporaryBuffer ( ) : System
ToArray ( ) : byte[]
Write ( byte buffer, int offset, int count ) : void
close ( ) : void
copy ( Stream @in ) : void
destroy ( ) : void
write ( byte bytes ) : void
write ( byte b, int off, int len ) : void
write ( int b ) : void
writeTo ( Stream os, ProgressMonitor pm ) : void

Private Methods

Method Description
last ( ) : GitSharp.Core.Util.Block
reachedInCoreLimit ( ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

TemporaryBuffer() public method

public TemporaryBuffer ( ) : System
return System

ToArray() public method

public ToArray ( ) : byte[]
return byte[]

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

close() public method

public close ( ) : void
return void

copy() public method

public copy ( Stream @in ) : void
@in Stream
return void

destroy() public method

public destroy ( ) : void
return void

write() public method

public write ( byte bytes ) : void
bytes byte
return void

write() public method

public write ( byte b, int off, int len ) : void
b byte
off int
len int
return void

write() public method

public write ( int b ) : void
b int
return void

writeTo() public method

public writeTo ( Stream os, ProgressMonitor pm ) : void
os Stream
pm ProgressMonitor
return void

Property Details

DEFAULT_IN_CORE_LIMIT public_oe static_oe property

public static int DEFAULT_IN_CORE_LIMIT
return int