Expression<Integer, Resolver> expr;
expr = Expressions.createInteger(context, settings.size());
return (Codec<T>) new FixedLengthStringCodec(
charset, //Note that this is a Charset, not an Encoding
expr,
settings.match(),
settings.converter().newInstance());
} else {
return (Codec<T>) new NullTerminatedStringCodec(
charset, //Note that this is a Charset, not an Encoding
settings.match(),