system New Member Jan 24, 2022 #1 Hi to All i have java method java code: #if Java ...... static long crc16(byte[] buffer) { long crc; .................. return crc; } #End if and i want pass some buffer to crc16 like : B4A: Private JI As JavaObject = Me Sub getDataInfo(Buffer() As Byte) JI.RunMethod("crc16", Buffer) End Sub and im wrong in call ( JI.RunMethod("crc16", Buffer) )
Hi to All i have java method java code: #if Java ...... static long crc16(byte[] buffer) { long crc; .................. return crc; } #End if and i want pass some buffer to crc16 like : B4A: Private JI As JavaObject = Me Sub getDataInfo(Buffer() As Byte) JI.RunMethod("crc16", Buffer) End Sub and im wrong in call ( JI.RunMethod("crc16", Buffer) )
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2022 #2 B4X: JI.RunMethod("crc16", Array(Buffer)) Upvote 0