コード例 #1
0
ファイル: ByteString.java プロジェクト: PlexChat/protobuf
 /**
  * Copies bytes into a buffer at the given offset.
  *
  * @param target buffer to copy into
  * @param offset in the target buffer
  * @throws IndexOutOfBoundsException if the offset is negative or too large
  */
 public void copyTo(byte[] target, int offset) {
   copyTo(target, 0, offset, size());
 }
コード例 #2
0
 @Override
 public int write(ByteBuffer bb) {
   ByteString b = reviveInDungeonResponseProto.toByteString();
   b.copyTo(bb);
   return b.size();
 }
コード例 #3
0
 @Override
 public int write(ByteBuffer bb) {
   ByteString b = buildConsumableResponseProto.toByteString();
   b.copyTo(bb);
   return b.size();
 }
 @Override
 public int write(ByteBuffer bb) {
   ByteString b = retractRequestJoinClanResponseProto.toByteString();
   b.copyTo(bb);
   return b.size();
 }
コード例 #5
0
 @Override
 public int write(ByteBuffer bb) {
   ByteString b = recordClanRaidStatsResponseProto.toByteString();
   b.copyTo(bb);
   return b.size();
 }
コード例 #6
0
 @Override
 public int write(ByteBuffer bb) {
   ByteString b = forceLogoutResponseProto.toByteString();
   b.copyTo(bb);
   return b.size();
 }