コード例 #1
0
 public static Offset <FileHashSerialized> CreateFileHashSerialized(FlatBufferBuilder builder,
                                                                    StringOffset filePathOffset = default(StringOffset),
                                                                    ulong fileSize = 0,
                                                                    VectorOffset sha2512HashOffset = default(VectorOffset),
                                                                    VectorOffset fileSampleOffset  = default(VectorOffset))
 {
     builder.StartObject(4);
     FileHashSerialized.AddFileSize(builder, fileSize);
     FileHashSerialized.AddFileSample(builder, fileSampleOffset);
     FileHashSerialized.AddSha2512Hash(builder, sha2512HashOffset);
     FileHashSerialized.AddFilePath(builder, filePathOffset);
     return(FileHashSerialized.EndFileHashSerialized(builder));
 }
コード例 #2
0
 public static FileHashSerialized GetRootAsFileHashSerialized(ByteBuffer _bb, FileHashSerialized obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }