func NewInt64PrimitiveUnmarshaler(v *int64) Unmarshaler {
	return &primitiveReader{read: func(reader Reader) (err error) {
		*v, err = reader.ReadInt64()
		return err
	}}
}
NewInt64PrimitiveUnmarshaler wraps the given int64 pointer in an Unmarshaler which will set the pointer's value to
the value read from the Reader given to UnmarshalRestLi.
Note that if the given pointer is nil, it will cause a panic.
package restlicodec
type primitiveReader struct {
	read func(Reader) (err error)
}
func (p *primitiveReader) UnmarshalRestLi(reader Reader) error {
	return p.read(reader)
}
func NewInt32PrimitiveUnmarshaler(v *int32) Unmarshaler {
	return &primitiveReader{read: func(reader Reader) (err error) {
		*v, err = reader.ReadInt32()
		return err
	}}
}