var RecivedStr: String; SetLength(RecivedStr, BufferLength); Move(Buffer^, Pointer(RecivedStr)^, BufferLength);