code: func toOCIResources(r *pb.LinuxContainerResources) *rspec.LinuxResources {
  	return &rspec.LinuxResources{
  		CPU: &rspec.LinuxCPU{
  			Shares: proto.Uint64(uint64(r.GetCpuShares())),
  			Quota:  proto.Int64(r.GetCpuQuota()),
  			Period: proto.Uint64(uint64(r.GetCpuPeriod())),
  			Cpus:   r.GetCpusetCpus(),
  			Mems:   r.GetCpusetMems(),
  		},
  		Memory: &rspec.LinuxMemory{
  			Limit: proto.Int64(r.GetMemoryLimitInBytes()),
  		},
  		// TODO(runcom): OOMScoreAdj is missing
  	}
  }
docs: // toOCIResources converts CRI resource constraints to OCI.