Sets the value of this ContextPair object.
It is up to the caller to allocate and free memory pointed to by value.