1 2 3 4 5
extends Reference func int_to_2bytes(value: int) -> PoolByteArray: return PoolByteArray([value & 255, (value >> 8) & 255])