(data: BytesLike)
| 121 | * Returns the length of %%data%%, in bytes. |
| 122 | */ |
| 123 | export function dataLength(data: BytesLike): number { |
| 124 | if (isHexString(data, true)) { return (data.length - 2) / 2; } |
| 125 | return getBytes(data).length; |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Returns a [[DataHexString]] by slicing %%data%% from the %%start%% |
nothing calls this directly
no test coverage detected