ILNumerics Ultimate VS

H5StringAttributeSet Method (InArrayString, NullableStringEncoding, NullableInt32, NullableInt32, NullableStringPadding)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Alter the data of this string attribute.

[ILNumerics HDF5 Module]

Namespace:  ILNumerics.IO.HDF5
Assembly:  ILNumerics.IO.HDF5 (in ILNumerics.IO.HDF5.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public void Set(
	InArray<string> A,
	Nullable<StringEncoding> encoding = null,
	Nullable<int> baseType = null,
	Nullable<int> length = null,
	Nullable<StringPadding> padding = null
)

Parameters

A
Type: ILNumericsInArrayString
New data for the attribute.
encoding (Optional)
Type: SystemNullableStringEncoding
[Optional] The encoding used to store the unicode characters in the file. Default: null (do not change).
baseType (Optional)
Type: SystemNullableInt32
[Optional] The base type used for storing the string elements in the file. Default: null (do not change).
length (Optional)
Type: SystemNullableInt32
[Optional] The length of individual elements. Default: null (do not change).
padding (Optional)
Type: SystemNullableStringPadding
[Optional] Padding character for remaining characters on fixed length strings. Default: null (do not change).
Remarks

The value of A will replace the whole existing attribute data and the size of the attribute as well as any additional parameter is adjusted to match the size of A and the new settings. Internally, and since HDF5 does not allow the manipulation of parameters after creation the attribute is deleted and recreated with the new settings.

For variable length strings a setting of -1 for the length parameter is not considered a 'change'. Hence the new string values are stored in the same attribute object without having to recreate the attribute. This is true even if the length of the new values differ from any lengths already stored in the file.

A value of

null
for A will remove the attribute from the file.

[ILNumerics HDF5 Module]

See Also

Reference