Shoddy C# version of redBuffer added.