public bool ReadBool() { fixed (byte* ptr_workspace = workspace) { bool tmp = *((bool*)(ptr_workspace + readIndex)); readIndex++; return tmp; } }