Class MappedAccessorInt64
A memory mapped accessor that stores uints.
Inherited Members
Namespace: Mars.Common.IO.Mapped.Accessors
Assembly: Mars.IO.dll
Syntax
public sealed class MappedAccessorInt64 : MappedAccessor<long>
Constructors
MappedAccessorInt64(MemoryMap, Stream)
Creates a new memory mapped file.
Declaration
public MappedAccessorInt64(MemoryMap file, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
MemoryMap | file | |
Stream | stream |
Methods
ReadFrom(Stream, Int64, ref Int64)
Reads appropriate amount of bytes from the stream at the given position and returns the structure.
Declaration
public override long ReadFrom(Stream stream, long position, ref long structure)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
System.Int64 | position | |
System.Int64 | structure |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Mars.Common.IO.Mapped.MappedAccessor<System.Int64>.ReadFrom(Stream, System.Int64, System.Int64)
WriteTo(Stream, Int64, ref Int64)
Converts the structure to bytes and writes them to the stream.
Declaration
public override long WriteTo(Stream stream, long position, ref long structure)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
System.Int64 | position | |
System.Int64 | structure |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Mars.Common.IO.Mapped.MappedAccessor<System.Int64>.WriteTo(Stream, System.Int64, System.Int64)