protected static bool __has_identifier(ByteBuffer bb, string ident) { if (ident.Length != FlatBufferConstants.FileIdentifierLength) throw new ArgumentException("FlatBuffers: file identifier must be length " + FlatBufferConstants.FileIdentifierLength, "ident"); for (var i = 0; i < FlatBufferConstants.FileIdentifierLength; i++) { if (ident[i] != (char)bb.Get(bb.position() + sizeof(int) + i)) return false; } return true; }
protected static bool __has_identifier(ByteBuffer bb, string ident) { if (ident.Length != FlatBufferConstants.FileIdentifierLength) { throw new ArgumentException("FlatBuffers: file identifier must be length " + FlatBufferConstants.FileIdentifierLength, "ident"); } for (var i = 0; i < FlatBufferConstants.FileIdentifierLength; i++) { if (ident[i] != (char)bb.Get(bb.position() + sizeof(int) + i)) { return(false); } } return(true); }
public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__init(_bb.GetInt(_bb.position()) + _bb.position(), _bb)); }
public static Stat GetRootAsStat(ByteBuffer _bb) { return (new Stat()).__init(_bb.GetInt(_bb.position()) + _bb.position(), _bb); }
public static Monster GetRootAsMonster(ByteBuffer _bb) { return (new Monster()).__init(_bb.GetInt(_bb.position()) + _bb.position(), _bb); }