Discuss this help topic in SecureBlackbox Forum

TElWebSocketMessage.SaveToBuffer

TElWebSocketMessage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Saves the message to buffer.

Declaration

[C#]
    bool SaveToBuffer(ref byte[] Buffer, ref int Size);

[VB.NET]
    Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean

[Pascal]
    function SaveToBuffer(var Buffer : ByteArray; var Size : integer) : boolean; virtual;

[C++]
    bool SaveToBuffer(std::vector<uint8_t> &Buffer, int32_t &Size);

[PHP]
    bool SaveToBuffer(array of byte|string &$Buffer, integer &$Size)

[Java]
    boolean saveToBuffer(byte[][] Buffer, int[] Size);

Parameters

  • Buffer - the buffer where the data should be stored.
  • Size - specifies the number of bytes that were actually saved.

Return value

    Returns True if the message was successfully saved, and False otherwise.

Description

    Use this method to save the message to a memory buffer.

See also:     LoadFromBuffer    

Discuss this help topic in SecureBlackbox Forum