Skip to content

Commit

Permalink
SBE implementation in Go using flyweights real-logic#765
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanf committed Apr 4, 2023
1 parent 2c7979e commit 012c7d9
Show file tree
Hide file tree
Showing 4 changed files with 2,556 additions and 2,051 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public CodeGenerator newInstance(final Ir ir, final String outputDir)
*/
public CodeGenerator newInstance(final Ir ir, final String outputDir)
{
return new GolangGenerator(ir, new GolangOutputManager(outputDir, ir.applicableNamespace()));
return new GolangGenerator(ir,
"true".equals(System.getProperty(DECODE_UNKNOWN_ENUM_VALUES)),
new GolangOutputManager(outputDir, ir.applicableNamespace()));
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class CppGenerator implements CodeGenerator
private final boolean shouldDecodeUnknownEnumValues;

/**
* Create a new Go language {@link CodeGenerator}.
* Create a new Cpp language {@link CodeGenerator}.
*
* @param ir for the messages and types.
* @param shouldDecodeUnknownEnumValues generate support for unknown enum values when decoding.
Expand Down

0 comments on commit 012c7d9

Please sign in to comment.