The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GetResult


Unit:SDL_dstruct
Class:TRLEncoder
Declaration:procedure GetResult (var OutBuf: array of byte); {Pascal}
void __fastcall GetResult(Byte * OutBuf, const int OutBuf_Size); {C++}

The function GetResult empties the decoder/encoder buffer and returns BufLeng bytes in the array variable OutBuf. GetResult must not be called unless a pending overflow has been signaled by Encode, or Decode. For emptying a partially filled buffer, you should use the method Finish.

Hint: The declaration of GetResult in C++ slightly differs from the Pascal declaration (note the extra parameter OutBuf_Size which specifies the highest index of the OutBuf array):
void __fastcall GetResult(Byte * OutBuf, const int OutBuf_Size);



Last Update: 2023-Feb-06