public void fromBytes(ByteBuffer b) {
byte [] ba = new byte[b.limit() - b.position()];
b.get(ba);
DataInputBuffer in = new DataInputBuffer();
in.reset(ba, ba.length);
means = new Means();
try {
means.readFields(in);
} catch (IOException e) {
throw new IllegalStateException(e);
}