writer.writeStructBegin("OneOfEverything");
writer.writeBoolField("aBoolean", (short) 1, oneOfEverything.aBoolean);
writer.writeByteField("aByte", (short) 2, oneOfEverything.aByte);
writer.writeI16Field("aShort", (short) 3, oneOfEverything.aShort);
writer.writeI32Field("aInt", (short) 4, oneOfEverything.aInt);
writer.writeI64Field("aLong", (short) 5, oneOfEverything.aLong);
writer.writeDoubleField("aDouble", (short) 6, oneOfEverything.aDouble);
writer.writeStringField("aString", (short) 7, oneOfEverything.aString);
writer.writeStructField("aStruct", (short) 8, aStructCodec, oneOfEverything.aStruct);
writer.writeEnumField("aEnum", (short) 9, aFruitCodec, oneOfEverything.aEnum);
writer.writeStructField("aUnion", (short) 61, aUnionCodec, oneOfEverything.aUnion);