// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.

package bench

import (
	json "encoding/json"

	easyjson "github.com/mailru/easyjson"
	jlexer "github.com/mailru/easyjson/jlexer"
	jwriter "github.com/mailru/easyjson/jwriter"
)

// suppress unused package warning
var (
	_ *json.RawMessage
	_ *jlexer.Lexer
	_ *jwriter.Writer
	_ easyjson.Marshaler
)

func easyjson80ca00c3DecodeBench(in *jlexer.Lexer, out *HelloWorld) {
	isTopLevel := in.IsStart()
	if in.IsNull() {
		if isTopLevel {
			in.Consumed()
		}
		in.Skip()
		return
	}
	in.Delim('{')
	for !in.IsDelim('}') {
		key := in.UnsafeFieldName(false)
		in.WantColon()
		if in.IsNull() {
			in.Skip()
			in.WantComma()
			continue
		}
		switch key {
		case "message":
			out.Message = string(in.String())
		default:
			in.SkipRecursive()
		}
		in.WantComma()
	}
	in.Delim('}')
	if isTopLevel {
		in.Consumed()
	}
}
func easyjson80ca00c3EncodeBench(out *jwriter.Writer, in HelloWorld) {
	out.RawByte('{')
	first := true
	_ = first
	{
		const prefix string = ",\"message\":"
		out.RawString(prefix[1:])
		out.String(string(in.Message))
	}
	out.RawByte('}')
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func (v HelloWorld) MarshalEasyJSON(w *jwriter.Writer) {
	easyjson80ca00c3EncodeBench(w, v)
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *HelloWorld) UnmarshalEasyJSON(l *jlexer.Lexer) {
	easyjson80ca00c3DecodeBench(l, v)
}
