Show / Hide Table of Contents

Class ShapesArray

An index for edge-shapes.

Inheritance
System.Object
ShapesArray
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ShapesArray : ArrayBase<ShapeBase>

Constructors

ShapesArray(MemoryMap, Int64)

A new shape index.

Declaration
public ShapesArray(MemoryMap map, long size)
Parameters
MemoryMap map

System.Int64 size

ShapesArray(Int64)

A new shape index.

Declaration
public ShapesArray(long size)
Parameters
System.Int64 size

Properties

CanResize

Returns true if this array can be resized.

Declaration
public override bool CanResize { get; }
Property Value
System.Boolean

Item[Int64]

Gets or sets the shape at the given id.

Declaration
public override sealed ShapeBase this[long id] { get; set; }
Parameters
System.Int64 id

Property Value
ShapeBase

Length

Gets the length.

Declaration
public override sealed long Length { get; }
Property Value
System.Int64

SizeInBytes

Returns the size in bytes as if serialized.

Declaration
public long SizeInBytes { get; }
Property Value
System.Int64

Methods

AddElevation(ElevationHandler.GetElevationDelegate)

Adds elevation.

Declaration
public void AddElevation(ElevationHandler.GetElevationDelegate getElevationFunc)
Parameters
ElevationHandler.GetElevationDelegate getElevationFunc

CopyFrom(Stream)

Copies from the given stream.

Declaration
public override void CopyFrom(Stream stream)
Parameters
Stream stream

CopyFrom(Stream, Boolean)

Copies from the given stream.

Declaration
public void CopyFrom(Stream stream, bool hasElevation = false)
Parameters
Stream stream

System.Boolean hasElevation

CopyTo(Stream)

Copies to the given stream.

Declaration
public override long CopyTo(Stream stream)
Parameters
Stream stream

Returns
System.Int64

CreateFrom(Stream, Boolean, Boolean)

Deserializes an shapes index from the given stream.

Declaration
public static ShapesArray CreateFrom(Stream stream, bool copy, bool hasElevation = false)
Parameters
Stream stream

System.Boolean copy

System.Boolean hasElevation

Returns
ShapesArray

CreateFrom(Stream, Boolean, out Int64, Boolean)

Deserializes an shapes index from the given stream.

Declaration
public static ShapesArray CreateFrom(Stream stream, bool copy, out long size, bool hasElevation = false)
Parameters
Stream stream

System.Boolean copy

System.Int64 size

System.Boolean hasElevation

Returns
ShapesArray

Dispose()

Disposes of all native resources associated with this object.

Declaration
public override sealed void Dispose()

Resize(Int64)

Resizes this array.

Declaration
public override sealed void Resize(long size)
Parameters
System.Int64 size

Switch(Int64, Int64)

Quickly switches two elements.

Declaration
public void Switch(long id1, long id2)
Parameters
System.Int64 id1

System.Int64 id2

Trim()

Trims the internal data structure(s).

Declaration
public void Trim()
Back to top Built by Itinero, MIT licensed.