Exemple #1
0
 public static Offset <MetadataModificationBuffer> CreateMetadataModificationBuffer(FlatBufferBuilder builder,
                                                                                    uint size                    = 0,
                                                                                    byte modificationType        = 0,
                                                                                    byte keySize                 = 0,
                                                                                    VectorOffset valueSizeOffset = default(VectorOffset),
                                                                                    VectorOffset keyOffset       = default(VectorOffset),
                                                                                    VectorOffset valueOffset     = default(VectorOffset))
 {
     builder.StartObject(6);
     MetadataModificationBuffer.AddValue(builder, valueOffset);
     MetadataModificationBuffer.AddKey(builder, keyOffset);
     MetadataModificationBuffer.AddValueSize(builder, valueSizeOffset);
     MetadataModificationBuffer.AddSize(builder, size);
     MetadataModificationBuffer.AddKeySize(builder, keySize);
     MetadataModificationBuffer.AddModificationType(builder, modificationType);
     return(MetadataModificationBuffer.EndMetadataModificationBuffer(builder));
 }
Exemple #2
0
 public static MetadataModificationBuffer GetRootAsMetadataModificationBuffer(ByteBuffer _bb, MetadataModificationBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }