Page 69 of 346 Start Back Next End ZBasic System Library 57 ZBasic Microcontrollers CByteArray Type Function returning a reference to a Byte array Invocation CByteArray(addr) Parameter Method Type Description addr ByVal int16 The address to be converted to a reference to a Byte array. Discussion This special function is useful when you have an integral value that you know to be the address of a Byte array and you want to pass it to a subroutine or function that requires a Byte array parameter. The example below shows it being used to determine the number of bytes of data available in the system input queue. Example Dim cnt as Integer cnt = GetQueueCount(CByteArray(Register.RxQueue)) See Also StatusTask