Example for OP_PUT_BINARY_TYPE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Example for OP_PUT_BINARY_TYPE

Prachi Garg
Pavel,

I am trying to come up with an example for OP_PUT_BINARY_TYPE = 3003.
However, few things are not clear to me from the wiki doc -

1. In BinaryField, What is Field id?
2. If there is no enum, what should I put for 'Enum values'?
3. What is Schema?

-P
Reply | Threaded
Open this post in threaded view
|

Re: Example for OP_PUT_BINARY_TYPE

Pavel Tupitsyn-3
Hi Prachi,

1) hash code of the field name
2) When "Is enum" is false, do not write anything, skip "Enum field count"
and "Enum values"
3) Schema is a set of field name hashes. Typically objects have a single
schema. Schema id is calculated as FNV1 hash, see
BinaryUtils.updateSchemaId.

On Thu, Dec 28, 2017 at 12:57 AM, Prachi Garg <[hidden email]> wrote:

> Pavel,
>
> I am trying to come up with an example for OP_PUT_BINARY_TYPE = 3003.
> However, few things are not clear to me from the wiki doc -
>
> 1. In BinaryField, What is Field id?
> 2. If there is no enum, what should I put for 'Enum values'?
> 3. What is Schema?
>
> -P
>