• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Common
      • GeoHash
      • GeoHashDecoder
      • GeohashDecodeResult
      • GeoHashEncoder
      • GeoHashPrecision
      • Hyperrectangle
      • InputHashHelper
      • PositionHelper
    • Mars.Common.Collections
      • BinaryArrayHeap<T>
      • DoubleBits
      • FibonacciHeap<T, TKey>
      • FibonacciHeapDoubleKey<T>
      • FibonacciHeapNode<T, TKey>
      • FibonacciHeapNodeDoubleKey<T>
      • HeapNode
      • IntervalSize
      • K2DTree<T>
      • K2dTreeNode<T>
      • KdTree
      • KdTree<T>
      • KdTreeBase<TNode>
      • KdTreeNode
      • KdTreeNode<T>
      • KdTreeNodeBase<TNode>
      • KdTreeNodeCollection<TNode>
      • KdTreeNodeList<T>
      • Key
      • Node<T>
      • NodeBase<T>
      • NodeDataContainer<T>
      • NodeDistance<TNode>
      • QuadTree<T>
      • Root<T>
      • TreeDataContainer<T>
    • Mars.Common.Collections.CritBit
      • ICritBitTree<TValue>
    • Mars.Common.Collections.Graph
      • EdgeData
      • GraphData
      • GraphSerializer
      • ISpatialGraph
      • KeyContainer
      • NodeData
      • SpatialGraph
      • SpatialGraphHelper
    • Mars.Common.Collections.Graph.Algorithms
      • AStar
      • CompressedPathDatabase
      • ContractionSearch
      • DepthLimitedTraversal
    • Mars.Common.Collections.Graph.Helper
      • INodeFinder
      • KdTreeNodeFinder
      • RunLengthEncoder
    • Mars.Common.Collections.KNNGraph
      • DefaultRandomGenerator
      • DistanceUtils
      • EventSources
      • EventSources.GraphBuildEventSource
      • EventSources.GraphSearchEventSource
      • IProgressReporter
      • IProvideRandomValues
      • KnnGraph<TItem, TDistance>
      • KnnGraph<TItem, TDistance>.KnnSearchResult
      • KnnGraph<TItem, TDistance>.Parameters
      • Node
      • ReverseComparer<T>
      • ReverseComparerExtensions
      • SelectionKind
      • TravelingCosts<TItem, TDistance>
    • Mars.Common.Compat
      • FormatDecoderAttribute
      • FormatEncoderAttribute
      • FormatHandlerAttribute
      • IntegerAttribute
      • NegativeIntegerAttribute
      • NonnegativeIntegerAttribute
      • NonpositiveIntegerAttribute
      • PositiveIntegerAttribute
    • Mars.Common.Data
      • DomainDataImporter
    • Mars.Common.Data.Providers
      • AscDataProvider
      • GeoJsonFeatureCollectionConverter
      • GeoJsonFeatureConverter
      • GeometryDataProvider
      • GraphMlProvider
      • HttpDataProvider
      • IDataProvider<TInput>
      • JsonFileDataProvider
      • JsonTextDataProvider
      • XmlFileDataProvider
      • XmlTextDataProvider
    • Mars.Common.Exceptions
      • DimensionMismatchException
      • ParseException
    • Mars.Common.IO
      • ExtensionMethods
      • FileClientUtils
      • FileKeys
      • HttpClientUtils
      • ObjectSerialize
      • Serializer
      • SerializerCompression
      • SparseFormat
      • SparseReader
      • SparseWriter
    • Mars.Common.IO.Attributes
      • SerializationBinderAttribute
      • SurrogateSelectorAttribute
    • Mars.Common.IO.Console
      • ChildProgressBar
      • IProgressBar
      • ProgressBar
      • ProgressBarBase
      • ProgressBarHeight
      • ProgressBarOptions
      • ProgressBarSimple
    • Mars.Common.IO.Csv
      • CsvAnalyzer
      • CsvReader
      • CsvReader.RecordEnumerator
      • CsvWriter
      • MissingFieldAction
      • ParseErrorAction
      • ValueTrimmingOptions
    • Mars.Common.IO.Events
      • ParseErrorEventArgs
    • Mars.Common.IO.Exceptions
      • MalformedCsvException
      • MissingFieldCsvException
    • Mars.Common.IO.Mapped
      • Context
      • DefaultArrayFactory
      • Extensions
      • IArrayFactory
      • ISerializableToStream
      • MappedAccessor<T>
      • MemoryMap
      • MemoryMap.CreateAccessorFunc<T>
      • MemoryMap.ReadFromDelegate<T>
      • MemoryMap.WriteToDelegate<T>
      • MemoryMapDelegates
      • MemoryMapDelegates.CreateAccessorFunc<T>
      • MemoryMapStream
    • Mars.Common.IO.Mapped.Accessors
      • MappedAccessorByte
      • MappedAccessorDouble
      • MappedAccessorInt16
      • MappedAccessorInt32
      • MappedAccessorInt64
      • MappedAccessorSingle
      • MappedAccessorUInt16
      • MappedAccessorUInt32
      • MappedAccessorUInt64
      • MappedAccessorVariable<T>
    • Mars.Common.IO.Mapped.Arrays
      • Array<T>
      • ArrayBase<T>
      • ArrayProfile
      • MappedArray<TMapped, T>
      • MappedArray<TMapped, T>.MapFrom
      • MappedArray<TMapped, T>.MapTo
      • MemoryArray<T>
      • VariableArray<T>
    • Mars.Common.IO.Mapped.Collections
      • MemoryBackedDictionary<TKey, TValue>
      • MemoryBackedList<T>
    • Mars.Common.IO.Mapped.Indexes
      • Index<T>
    • Mars.Common.IO.Mapped.Streams
      • CappedStream
    • Mars.Common.Socket
      • ByteOrder
      • CloseEventArgs
      • CloseStatusCode
      • CompressionMethod
      • ErrorEventArgs
      • Ext
      • MessageEventArgs
      • WebSocket
      • WebSocketException
      • WebSocketState
    • Mars.Common.Socket.Server
      • IWebSocketSession
      • WebHeaderCollection
      • WebSocketBehavior
      • WebSocketContext
      • WebSocketServer
      • WebSocketServiceHost
      • WebSocketServiceManager
      • WebSocketSessionManager
    • Mars.Numerics
      • Classes
      • Combinatorics
      • Constants
      • Distance
      • Elementwise
      • Jagged
      • MathematicsException
      • MathHelper
      • Matrix
      • MatrixOrder
      • MatrixType
      • Norm
      • Sort
      • Sorting
      • Sparse
      • Sparse<T>
      • Tools
      • Vector
      • VectorHelper
      • VectorType
    • Mars.Numerics.Comparers
      • ArrayComparer<T>
      • ComparerDirection
      • CustomComparer<T>
      • ElementComparer
      • ElementComparer<T>
      • GeneralComparer
      • StableComparer<T>
    • Mars.Numerics.Distances
      • Angular
      • Chebyshev
      • Cosine
      • Dirac<T>
      • Euclidean
      • Hamming
      • Hamming<T>
      • Haversine
      • Jaccard
      • Jaccard<T>
      • Kulczynski
      • Levenshtein
      • Levenshtein<T>
      • Manhattan
      • Matching
      • Minkowski
      • SquareEuclidean
      • Vincenty
      • Vincenty.Ellipsoid
    • Mars.Numerics.Distances.Base
      • IDistance<T>
      • IDistance<TFirst, TSecond>
      • IMetric<T>
      • ISimilarity<T, TU>
      • ISimilarity<T>
    • Mars.Numerics.Exceptions
      • DimensionMismatchException
      • NonPositiveDefiniteMatrixException
      • SingularMatrixException
    • Mars.Numerics.Formats
      • DefaultMatrixFormatProvider
      • IMatrixFormatProvider
      • MatrixFormatProviderBase
      • MatrixFormatter
      • OctaveMatrixFormatProvider
    • Mars.Numerics.Ranges
      • ByteRange
      • DoubleRange
      • FloatRange
      • IntRange
      • IRange<T>
    • Mars.Numerics.Statistics
      • ConstValueDistribution<T>
      • Distribution<T>
      • FastGaussianDistributionD
      • FastGaussianDistributionF
      • IDistribution
      • UniformDiscreteDistribution
      • UniformDistributionD
      • UniformDistributionF
    • Mars.Numerics.Statistics.Base
      • BinarySearch
      • DistributionBase
      • ISampleableDistribution<TObservations>
      • IUnivariateDistribution
      • IUnivariateDistribution<TObservation>
      • UnivariateDiscreteDistribution

    Class MemoryMapStream

    A mapped file that is using a single stream.
    Inheritance
    IDisposable
    MemoryMap
    MemoryMapStream
    Inherited Members
    MemoryMap.Dispose()
    MemoryMap.CreateUInt32(Int64)
    MemoryMap.CreateInt32(Int64)
    MemoryMap.CreateSingle(Int64)
    MemoryMap.CreateDouble(Int64)
    MemoryMap.CreateUInt64(Int64)
    MemoryMap.CreateInt64(Int64)
    MemoryMap.CreateInt16(Int64)
    MemoryMap.CreateUInt16(Int64)
    MemoryMap.CreateByte(Int64)
    MemoryMap.CreateVariable<T>(Int64, MemoryMap.ReadFromDelegate<T>, MemoryMap.WriteToDelegate<T>)
    MemoryMap.CreateVariableString(Int64)
    MemoryMap.CreateVariableUInt32Array(Int64)
    MemoryMap.CreateVariableInt32Array(Int64)
    MemoryMap.RegisterCreateAccessorFuncs()
    MemoryMap.GetCreateAccessorFuncFor<T>()
    Namespace: Mars.Common.IO.Mapped
    Assembly: Mars.IO.dll
    Syntax
    public class MemoryMapStream : MemoryMap

    Constructors

    MemoryMapStream()

    Creates a new mapped stream using a memory stream.
    Declaration
    public MemoryMapStream()

    MemoryMapStream(Stream)

    Creates a new mapped stream.
    Declaration
    public MemoryMapStream(Stream stream)
    Parameters
    Type Name Description
    Stream stream The stream to read/write.

    Methods

    DoCreateNewByte(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<byte> DoCreateNewByte(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Byte>
    Overrides
    MemoryMap.DoCreateNewByte(Int64, Int64)

    DoCreateNewDouble(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<double> DoCreateNewDouble(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Double>
    Overrides
    MemoryMap.DoCreateNewDouble(Int64, Int64)

    DoCreateNewInt16(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<short> DoCreateNewInt16(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Int16>
    Overrides
    MemoryMap.DoCreateNewInt16(Int64, Int64)

    DoCreateNewInt32(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<int> DoCreateNewInt32(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Int32>
    Overrides
    MemoryMap.DoCreateNewInt32(Int64, Int64)

    DoCreateNewInt64(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<long> DoCreateNewInt64(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Int64>
    Overrides
    MemoryMap.DoCreateNewInt64(Int64, Int64)

    DoCreateNewSingle(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<float> DoCreateNewSingle(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.Single>
    Overrides
    MemoryMap.DoCreateNewSingle(Int64, Int64)

    DoCreateNewUInt16(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<ushort> DoCreateNewUInt16(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.UInt16>
    Overrides
    MemoryMap.DoCreateNewUInt16(Int64, Int64)

    DoCreateNewUInt32(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<uint> DoCreateNewUInt32(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.UInt32>
    Overrides
    MemoryMap.DoCreateNewUInt32(Int64, Int64)

    DoCreateNewUInt64(Int64, Int64)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<ulong> DoCreateNewUInt64(long position, long sizeInBytes)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    Returns
    Type Description
    MappedAccessor<System.UInt64>
    Overrides
    MemoryMap.DoCreateNewUInt64(Int64, Int64)

    DoCreateVariable<T>(Int64, Int64, MemoryMap.ReadFromDelegate<T>, MemoryMap.WriteToDelegate<T>)

    Creates a new memory mapped file based on the given stream and the given size in bytes.
    Declaration
    protected override MappedAccessor<T> DoCreateVariable<T>(long position, long sizeInBytes, MemoryMap.ReadFromDelegate<T> readFrom, MemoryMap.WriteToDelegate<T> writeTo)
    Parameters
    Type Name Description
    System.Int64 position The position to start at.
    System.Int64 sizeInBytes The size.
    MemoryMap.ReadFromDelegate<T> readFrom
    MemoryMap.WriteToDelegate<T> writeTo
    Returns
    Type Description
    MappedAccessor<T>
    Type Parameters
    Name Description
    T
    Overrides
    Mars.Common.IO.Mapped.MemoryMap.DoCreateVariable<T>(System.Int64, System.Int64, Mars.Common.IO.Mapped.MemoryMap.ReadFromDelegate<T>, Mars.Common.IO.Mapped.MemoryMap.WriteToDelegate<T>)

    Extension Methods

    DomainDataImporter.Import(Object, InputConfiguration)
    ObjectSerialize.Serialize(Object)
    Serializer.Save<T>(T, Stream, SerializerCompression)
    Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
    Serializer.Save<T>(T, String)
    Serializer.Save<T>(T, String, SerializerCompression)
    Serializer.Save<T>(T, out Byte[], SerializerCompression)
    Matrix.Replace<T>(T, Object, Object)
    Matrix.IsEqual(Object, Object, Decimal, Decimal)
    Matrix.Concatenate<T>(T, T[])
    Back to top Copyright © MARS GROUP.
    HAW Hamburg