if (byteOrder == null) {
byteOrder = prefix.byteOrder();
} else {
if (byteOrder != prefix.byteOrder()) {
throw new CodecConstructionException("Two distinct types of byte orders are not supported: "
+ "expected " + byteOrder.asText() + ", got "
+ prefix.byteOrder().asText() + " for " + codec);
}
}
if (size != -1) {
if (size != prefix.size()) {