Skip to content

Instantly share code, notes, and snippets.

View fredeil's full-sized avatar
🎯
Focusing

Fredrik Eilertsen fredeil

🎯
Focusing
View GitHub Profile
public class ChickenCodec
{
static readonly char[] feed = { 'C', 'H', 'I', 'C', 'K', 'E', 'N', '.' };
private static Lazy<byte[]> charFeed = new Lazy<byte[]>(() =>
{
byte[] feed = new byte[256 * 8];
unsafe
{
fixed (byte* feedptr = feed)
{