34 lines
1.3 KiB
MQL5
//+------------------------------------------------------------------+
| |||
//| InSitu.mq5 |
| |||
//| Copyright 2026, Niquel Mendoza. |
| |||
//| https://www.mql5.com |
| |||
//+------------------------------------------------------------------+
| |||
#property copyright "Copyright 2026, Niquel Mendoza."
| |||
#property link "https://www.mql5.com"
| |||
#property version "1.00"
| |||
#property strict
| |||
| |||
//+------------------------------------------------------------------+
| |||
//| |
| |||
//+------------------------------------------------------------------+
| |||
#include "Base64.mqh"
| |||
| |||
//+------------------------------------------------------------------+
| |||
//| Script program start function |
| |||
//+------------------------------------------------------------------+
| |||
void OnStart()
| |||
{
| |||
//---
| |||
uchar datos[];
| |||
const int n = ArrayResize(datos, 5);
| |||
ArrayInitialize(datos, 3);
| |||
| |||
| |||
uchar out[];
| |||
CryptEncode(CRYPT_BASE64, datos, datos, out);
| |||
ArrayPrint(out);
| |||
| |||
int k = TSN::CBase64::EncodeInPlace(datos, 0, n);
| |||
ArrayPrint(datos);
| |||
}
| |||
//+------------------------------------------------------------------+
|