C# Class Squared.Data.Mangler.Internal.StreamRef

Inheritance: IDisposable
Afficher le fichier Open project: sq/DataMangler Class Usage Examples

Méthodes publiques

Свойство Type Description
HeaderSize uint
NativeStream System.IO.FileStream
OwnsStream bool

Protected Properties

Свойство Type Description
Cache ViewCache
Handle System.IO.MemoryMappedFiles.MemoryMappedFile
HeaderView System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
StreamCapacity long

Méthodes publiques

Méthode Description
AccessRange ( long offset, uint size, MemoryMappedFileAccess access = MemoryMappedFileAccess.ReadWrite ) : StreamRange

Accesses a range of bytes within the stream.

AccessRangeUncached ( long offset, uint size, MemoryMappedFileAccess access = MemoryMappedFileAccess.ReadWrite ) : StreamRange

Accesses a range of bytes within the stream, bypassing the stream cache.

AllocateSpace ( uint size ) : long?

Allocates size byte(s) of unused space at the end of the stream.

Clear ( ) : void
Dispose ( ) : void
FlushCache ( ) : void
Shrink ( int size ) : long
StreamRef ( FileStream nativeStream, bool ownsStream = true ) : System

Méthodes protégées

Méthode Description
CreateHandles ( long capacity ) : void
EnsureCapacity ( long capacity ) : void
GetTotalLength ( ) : long

Private Methods

Méthode Description
AccessHeader ( ) : StreamHeaderRef
DisposeViews ( ) : void

Method Details

AccessRange() public méthode

Accesses a range of bytes within the stream.
public AccessRange ( long offset, uint size, MemoryMappedFileAccess access = MemoryMappedFileAccess.ReadWrite ) : StreamRange
offset long The offset within the stream, relative to the end of the stream header.
size uint The size of the range to access, in bytes.
access MemoryMappedFileAccess
Résultat StreamRange

AccessRangeUncached() public méthode

Accesses a range of bytes within the stream, bypassing the stream cache.
public AccessRangeUncached ( long offset, uint size, MemoryMappedFileAccess access = MemoryMappedFileAccess.ReadWrite ) : StreamRange
offset long The offset within the stream, relative to the end of the stream header.
size uint The size of the range to access, in bytes.
access MemoryMappedFileAccess
Résultat StreamRange

AllocateSpace() public méthode

Allocates size byte(s) of unused space at the end of the stream.
public AllocateSpace ( uint size ) : long?
size uint The number of bytes to allocate.
Résultat long?

Clear() public méthode

public Clear ( ) : void
Résultat void

CreateHandles() protected méthode

protected CreateHandles ( long capacity ) : void
capacity long
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnsureCapacity() protected méthode

protected EnsureCapacity ( long capacity ) : void
capacity long
Résultat void

FlushCache() public méthode

public FlushCache ( ) : void
Résultat void

GetTotalLength() protected méthode

protected GetTotalLength ( ) : long
Résultat long

Shrink() public méthode

public Shrink ( int size ) : long
size int
Résultat long

StreamRef() public méthode

public StreamRef ( FileStream nativeStream, bool ownsStream = true ) : System
nativeStream System.IO.FileStream
ownsStream bool
Résultat System

Property Details

Cache protected_oe property

protected ViewCache,Squared.Data.Mangler.Internal Cache
Résultat ViewCache

Handle protected_oe property

protected MemoryMappedFile,System.IO.MemoryMappedFiles Handle
Résultat System.IO.MemoryMappedFiles.MemoryMappedFile

HeaderSize public_oe static_oe property

public static uint HeaderSize
Résultat uint

HeaderView protected_oe property

protected MemoryMappedViewAccessor,System.IO.MemoryMappedFiles HeaderView
Résultat System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

NativeStream public_oe property

public FileStream,System.IO NativeStream
Résultat System.IO.FileStream

OwnsStream public_oe property

public bool OwnsStream
Résultat bool

StreamCapacity protected_oe property

protected long StreamCapacity
Résultat long