我想生成類似於OData二進制的二進制數據,我不知道如何。 類型被定義爲生成隨機二進制數據,如23ABFF
Represent fixed- or variable- length binary data
binary'[A-Fa-f0-9][A-Fa-f0-9]*' OR X '[A-Fa-f0-9][A-Fa-f0-9]*' NOTE: X and binary are case sensitive. Spaces are not allowed between binary and the quoted portion. Spaces are not allowed between X and the quoted portion. Odd pairs of hex digits are not allowed.
**Example 1: X'23AB' Example 2: binary'23ABFF'**
與next.random()Im不肯定,其類型可以是適當的。 有什麼想法?
是否將隨機int轉換爲十六進制選項?這可能不是最好的,但可能是一種選擇。 – Bill