Skip to content

Add helper functions to convert different datatypes #2

@kanashius

Description

@kanashius

Add some helper functions to allow the translation from and to binary data to send it with __IPC_SubSend/__IPC_MainSend.
Will probably get look like this:
__IPC_SubSend(Binary($iVal)&Binary($fVal)&StringToBinary($sData))
When receiving $bData, use some functions to read the values again
__IPC_BinToInt($bData) => Int(BinaryMid($bData, 1, 4))
__IPC_BinToFloat($bData) => Float(BinaryMid($bData, 1, 4))
__IPC_BinToString($bData, 10) => BinaryToString(BinaryMid($bData, 1, 10))
...

or maybe think of something better.

This should help user to not need to now how to process the binary data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions