Class Slice
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
intThe key identifier for this slice.
sliceIndex
intThe 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
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
_id
Gets the MongoDB document ID, which is a combination of Key and SliceIndex.
[BsonId]
public string _id { get; }