Hi All,

I want to change/overload the implementation private void Send (Stream s)
​method​ in the BaseXClient.cs file. [
basex / basex-api / src / main / c# / BaseXClient.cs]

​Existing implementation:

private void Send(Stream s)
{
while (true)
{
int t = s.ReadByte();
if (t == -1) break;
if (t == 0x00 || t == 0xFF) stream.WriteByte(Convert.ToByte(0xFF));
stream.WriteByte(Convert.ToByte(t));
}
stream.WriteByte(0);
info = Receive();
if(!Ok())
{
throw new IOException(info);
}
}
​What I want it to be:
Inline image 1
​This one is faster for my use case. Please do let me know how can this be done?​

Regards,
N.D.