DfsExtensionsdfsEncodeT Method |
Compress the
uncompressed array using the encoding keys.
See GetEncodeKey(Int32, Int32, Int32) for details on the encoding key
definition.
Data outside the encoding key definitions are discarded (set to delete value).
Namespace: DHI.Generic.MikeZero.DFSAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static T[] dfsEncode<T>(
T[] uncompressed,
int xSize,
int ySize,
int zSize,
int[] xKey,
int[] yKey,
int[] zKey
)
Public Shared Function dfsEncode(Of T) (
uncompressed As T(),
xSize As Integer,
ySize As Integer,
zSize As Integer,
xKey As Integer(),
yKey As Integer(),
zKey As Integer()
) As T()
public:
generic<typename T>
static array<T>^ dfsEncode(
array<T>^ uncompressed,
int xSize,
int ySize,
int zSize,
array<int>^ xKey,
array<int>^ yKey,
array<int>^ zKey
)
static member dfsEncode :
uncompressed : 'T[] *
xSize : int *
ySize : int *
zSize : int *
xKey : int[] *
yKey : int[] *
zKey : int[] -> 'T[]
Parameters
- uncompressed
- Type: T
Array of data that is to be compressed - xSize
- Type: SystemInt32
size in x-dimension of uncompressed array - ySize
- Type: SystemInt32
size in y-dimension of uncompressed array. 1 if data does not have a y-dimension - zSize
- Type: SystemInt32
size in z-dimension of uncompressed array. 1 if data does not have a z-dimension - xKey
- Type: SystemInt32
X encoding key. All values of array must be below xSize - yKey
- Type: SystemInt32
Y encoding key. All values of array must be below ySize - zKey
- Type: SystemInt32
Z encoding key. All values of array must be below zSize
Type Parameters
- T
Return Value
Type:
TA compressed array
Remarks
Dynamic item data are automatically encoded by the ufs.dll. Static items are not so.
See Also