Class MappedAccessorDouble
A memory mapped accessor that stores floats.
  
  
  Implements
System.IDisposable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Mars.Common.IO.Mapped.Accessors
Assembly: Mars.IO.dll
Syntax
public sealed class MappedAccessorDouble : MappedAccessor<double>, IDisposableConstructors
| Improve this Doc View SourceMappedAccessorDouble(MemoryMap, Stream)
Creates a new memory mapped accessor.
  
  Declaration
public MappedAccessorDouble(MemoryMap file, Stream stream)Parameters
| Type | Name | Description | 
|---|---|---|
| MemoryMap | file | |
| System.IO.Stream | stream | 
Methods
| Improve this Doc View SourceReadFrom(Stream, Int64, ref Double)
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 double structure)Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | |
| System.Int64 | position | |
| System.Double | structure | 
Returns
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
Mars.Common.IO.Mapped.MappedAccessor<System.Double>.ReadFrom(System.IO.Stream, System.Int64, System.Double)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WriteTo(Stream, Int64, ref Double)
Converts the structure to bytes and writes them to the stream.
  
  Declaration
public override long WriteTo(Stream stream, long position, ref double structure)Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | |
| System.Int64 | position | |
| System.Double | structure | 
Returns
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
Mars.Common.IO.Mapped.MappedAccessor<System.Double>.WriteTo(System.IO.Stream, System.Int64, System.Double)
  Implements
      System.IDisposable