Searched refs:MAX_DATA_BYTES (Results 1 – 2 of 2) sorted by relevance
43 public static final int MAX_DATA_BYTES = 10 * 1024; // 10KB field in Data322 if (outputStream.size() > MAX_DATA_BYTES) { in toByteArray()324 "Data cannot occupy more than " + MAX_DATA_BYTES + "KB when serialized"); in toByteArray()338 if (bytes.length > MAX_DATA_BYTES) { in fromByteArray()340 "Data cannot occupy more than " + MAX_DATA_BYTES + "KB when serialized"); in fromByteArray()
90 int[] payload = new int[Data.MAX_DATA_BYTES + 1]; in testSerializePastMaxSize()104 byte[] payload = new byte[Data.MAX_DATA_BYTES + 1]; in testDeserializePastMaxSize()