(data)
| 93 | * Returns the length of %%data%%, in bytes. |
| 94 | */ |
| 95 | export function dataLength(data) { |
| 96 | if (isHexString(data, true)) { |
| 97 | return (data.length - 2) / 2; |
| 98 | } |
| 99 | return getBytes(data).length; |
| 100 | } |
| 101 | /** |
| 102 | * Returns a [[DataHexString]] by slicing %%data%% from the %%start%% |
| 103 | * offset to the %%end%% offset. |
no test coverage detected