Convert Converts a string to EDCDIC hex.
Parameters
- String
- Length to pad - if null, will use the length of the string valueto (optional)
Return Value
This API returns a JavaScript Buffer object. The length of the buffer is determined by the parameterparameters. If the String value length is less than the length provided, the buffer will be is padded with blanks. If the String value length is longer than the length provided, it will only convert the String characters in up to the specified length are converted.
Exception Handling
If you pass in the an incorrect amount of hex value, it is possible that the Buffer module can throw an error.
...