Пример #1
0
 public ChatConnectAvatar(final ByteBuffer buffer) {
   characterId = buffer.getLong();
   characterName = BufferUtil.getAscii(buffer);
   stationId = buffer.getInt();
   secure = BufferUtil.getBoolean(buffer);
   subscribed = BufferUtil.getBoolean(buffer);
 }
Пример #2
0
 @Override
 public void writeToBuffer(final ByteBuffer buffer) {
   BufferUtil.put(buffer, characterId);
   BufferUtil.put(buffer, characterName);
   BufferUtil.put(buffer, stationId);
   BufferUtil.put(buffer, secure);
   BufferUtil.put(buffer, subscribed);
 }