[]
Separate bytes in an int into a byte array lsb to msb order.
public static byte[] setInt(int d)
| Type | Name | Description |
|---|---|---|
| int | d | integer to separate |
| Type | Description |
|---|---|
| byte[] | byte [] containing separated int. |
Separate bytes in an int into a byte array lsb to msb order. Return the result in the provided array
public static byte[] setInt(int d, byte[] b)
| Type | Name | Description |
|---|---|---|
| int | d | integer to separate |
| byte[] | b | return output here. |
| Type | Description |
|---|---|
| byte[] | reference to output. |