mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:22:53 +02:00
Messages
- Removed implicit `static` - Added documentation to `ubyte[] encodeMessage(string)`
This commit is contained in:
parent
f4a2a75094
commit
1f1796930d
@ -30,7 +30,16 @@ __gshared static this()
|
||||
/**
|
||||
* Encoding/decoding primitives
|
||||
*/
|
||||
public static ubyte[] encodeMessage(string messageIn)
|
||||
|
||||
/**
|
||||
* Encodes the provided message into a CRLF
|
||||
* terminated byte array
|
||||
*
|
||||
* Params:
|
||||
* messageIn = the message to encode
|
||||
* Returns: the encoded message
|
||||
*/
|
||||
public ubyte[] encodeMessage(string messageIn)
|
||||
{
|
||||
ubyte[] messageOut = cast(ubyte[])messageIn;
|
||||
messageOut~=[cast(ubyte)13, cast(ubyte)10];
|
||||
|
Loading…
Reference in New Issue
Block a user