class MarketLayout extends Struct {

  public static StructDecoder<MarketStat> getLayout(final PublicKey programId) {<FILL_FUNCTION_BODY>}
}

    if (getLayoutVersion(programId) == 1) {
      return MarketStatLayoutV1.DECODER;
    }
    return MarketStatLayoutV2.DECODER;
  
<methods>public void <init>() ,public void <init>(int) ,public boolean[] booleanFlagsDecoder(byte[], int) ,public static long decodeLong(byte[]) ,public int fixBitwiseResult(int) <variables>public int valueMask