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....



Finish


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

The method Finish has to called last of all in order to empty the internal buffer and finish the encoding, or decoding process. The function returns the number of valid bytes in the variable array OutBuf.

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



Last Update: 2023-Feb-06