IsValidEncodingForPut Method
IsValidEncodingForPut(PivDataTag, ReadOnlyMemory<Byte>)
Is the given encoding valid for PUT DATA using the specified tag.
C#
public static bool IsValidEncodingForPut(this PivDataTag tag, ReadOnlyMemory<byte> encoding)
Parameters
Type | Name | Description |
---|---|---|
PivDataTag | tag | The tag to check. |
System.ReadOnlyMemory<System.Byte> | encoding | The encoding to check. |
Returns
System.Boolean
A boolean, true if the encoding follows the defined encoding format, and false otherwise.
Remarks
Each tag has a defined encoding format for the data to PUT. This method will verify that the data follows the correct format. It does not verify the content, it simply verifies the format.