@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer buffer = ByteBuffer.wrap(rawDatas); this.m_successful = (buffer.get() == 1); this.m_yourDimBag = (buffer.get() == 1); this.m_partitionNationId = buffer.getInt(); if (this.m_successful) { if (!this.m_yourDimBag) { (this.m_serializedPersonalSpace = new RawDimensionalBagForClient()).unserialize(buffer); } else { this.m_onMarket = (buffer.get() == 1); this.m_fleaAllowed = (buffer.get() == 1); this.m_serializedPersonalSpace = null; } } return true; }
@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer bb = ByteBuffer.wrap(rawDatas); (this.m_rawCompartment = new RawStorageBoxCompartment()).unserialize(bb); return true; }