Exemplo n.º 1
0
// builder.Struct works by reflection which is to slow for this
// as its called so often.
func buildVertex(b *builder.Buffer, v *chunkVertex) {
	b.Write((*[1 << 28]byte)(unsafe.Pointer(v))[:vertexSize])
}