1
0
Fork 0
mirror of https://github.com/besterprotocol/bformat synced 2023-12-13 21:30:24 +01:00
bformat/source/bformat/package.d
Tristan B. Velloza Kildaire b9c4b37b59 BClient
- Holds teh socket for the lifetime of usage and you can now use `receiveMessage(ref byte[])` and `sendMesssage(byte[])` on it
2023-04-30 00:01:23 +02:00

29 lines
658 B
D

/**
* bformat encoder/decoder
*/
module bformat;
/**
* Encodes the provided message into the bformat format
* and sends it over the provided socket
*/
public import bformat.sockets : BClient;
/**
* Receives a message from the provided socket
* by decoding the streamed bytes into bformat
* and finally placing the resulting payload in
* the provided array
*/
// public import bformat.sockets : receiveMessage;
/**
* Encodes the provided message into the bformat format
*/
public import bformat.marshall : encodeBformat;
/**
* Decodes the provided bformat message into the
* message itself
*/
public import bformat.marshall : decodeMessage;