public static Offset <ResCreateRole> CreateResCreateRole(FlatBufferBuilder builder, int result = 0, Offset <RoleInfo> roleInfoOffset = default(Offset <RoleInfo>)) { builder.StartObject(2); ResCreateRole.AddRoleInfo(builder, roleInfoOffset); ResCreateRole.AddResult(builder, result); return(ResCreateRole.EndResCreateRole(builder)); }
public static ResCreateRole GetRootAsResCreateRole(ByteBuffer _bb, ResCreateRole obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }