Method FastestFormatAndBits
FastestFormatAndBits(Int32, Int32, Single)
Try to find the PackedInt32s.Format and number of bits per value that would
restore from disk the fastest reader whose overhead is less than
acceptableOverheadRatio
.
The acceptableOverheadRatio
parameter makes sense for
random-access PackedInt32s.Readers. In case you only plan to perform
sequential access on this stream later on, you should probably use
COMPACT.
If you don't know how many values you are going to write, use
.valueCount
= -1
Declaration
public static PackedInt32s.FormatAndBits FastestFormatAndBits(int valueCount, int bitsPerValue, float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | valueCount | |
System.Int32 | bitsPerValue | |
System.Single | acceptableOverheadRatio |
Returns
Type | Description |
---|---|
PackedInt32s.FormatAndBits |