* Returns the length of %%data%%, in bytes.
(data)
| 102 | * Returns the length of %%data%%, in bytes. |
| 103 | */ |
| 104 | function dataLength(data) { |
| 105 | if (isHexString(data, true)) { |
| 106 | return (data.length - 2) / 2; |
| 107 | } |
| 108 | return getBytes(data).length; |
| 109 | } |
| 110 | exports.dataLength = dataLength; |
| 111 | /** |
| 112 | * Returns a [[DataHexString]] by slicing %%data%% from the %%start%% |
nothing calls this directly
no test coverage detected