Table of Contents

Class Slice

Namespace
Hi.Common
Assembly
HiGeom.dll

Designed for mongo large bytes splision.

public class Slice
Inheritance
Slice
Inherited Members
Extension Methods

Constructors

Slice(int, int, byte[])

Initializes a new instance of the Slice class with the specified key, slice index, and data.

public Slice(int key, int sliceIndex, byte[] data)

Parameters

key int

The key identifier for this slice.

sliceIndex int

The index of this slice within the collection of slices for the same key.

data byte[]

The binary data to be stored in this slice.

Properties

Data

Gets or sets the binary data contained in this slice.

public byte[] Data { get; set; }

Property Value

byte[]

Key

Gets or sets the key identifier for this slice.

public int Key { get; set; }

Property Value

int

SliceIndex

Gets or sets the index of this slice within the collection of slices for the same key.

public int SliceIndex { get; set; }

Property Value

int

_id

Gets the MongoDB document ID, which is a combination of Key and SliceIndex.

[BsonId]
public string _id { get; }

Property Value

string