C# Класс Squared.Data.Mangler.Internal.StreamRef

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
HeaderSize uint
NativeStream System.IO.FileStream
OwnsStream bool

Защищенные свойства (Protected)

Свойство Тип Описание
Cache ViewCache
Handle System.IO.MemoryMappedFiles.MemoryMappedFile
HeaderView System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
StreamCapacity long

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
CreateHandles ( long capacity ) : void
EnsureCapacity ( long capacity ) : void
GetTotalLength ( ) : long

Приватные методы

Метод Описание
AccessHeader ( ) : StreamHeaderRef
DisposeViews ( ) : void

Описание методов

AccessRange() публичный Метод

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
Результат StreamRange

AccessRangeUncached() публичный Метод

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
Результат StreamRange

AllocateSpace() публичный Метод

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.
Результат long?

Clear() публичный Метод

public Clear ( ) : void
Результат void

CreateHandles() защищенный Метод

protected CreateHandles ( long capacity ) : void
capacity long
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

EnsureCapacity() защищенный Метод

protected EnsureCapacity ( long capacity ) : void
capacity long
Результат void

FlushCache() публичный Метод

public FlushCache ( ) : void
Результат void

GetTotalLength() защищенный Метод

protected GetTotalLength ( ) : long
Результат long

Shrink() публичный Метод

public Shrink ( int size ) : long
size int
Результат long

StreamRef() публичный Метод

public StreamRef ( FileStream nativeStream, bool ownsStream = true ) : System
nativeStream System.IO.FileStream
ownsStream bool
Результат System

Описание свойств

Cache защищенное свойство

protected ViewCache,Squared.Data.Mangler.Internal Cache
Результат ViewCache

Handle защищенное свойство

protected MemoryMappedFile,System.IO.MemoryMappedFiles Handle
Результат System.IO.MemoryMappedFiles.MemoryMappedFile

HeaderSize публичное статическое свойство

public static uint HeaderSize
Результат uint

HeaderView защищенное свойство

protected MemoryMappedViewAccessor,System.IO.MemoryMappedFiles HeaderView
Результат System.IO.MemoryMappedFiles.MemoryMappedViewAccessor

NativeStream публичное свойство

public FileStream,System.IO NativeStream
Результат System.IO.FileStream

OwnsStream публичное свойство

public bool OwnsStream
Результат bool

StreamCapacity защищенное свойство

protected long StreamCapacity
Результат long