HomeSort by relevance Sort by last modified time
    Searched defs:ByteString (Results 1 - 6 of 6) sorted by null

  /external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 47 public final class ByteString {
50 private ByteString(final byte[] bytes) {
78 // byte[] -> ByteString
81 * Empty ByteString.
83 public static final ByteString EMPTY = new ByteString(new byte[0]);
86 * Copies the given bytes into a {@code ByteString}.
88 public static ByteString copyFrom(final byte[] bytes, final int offset,
92 return new ByteString(copy);
96 * Copies the given bytes into a {@code ByteString}
    [all...]
  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
ByteStringTest.java 33 import com.google.protobuf.ByteString.Output;
51 * Test methods with implementations in {@link ByteString}, plus do some top-level "integration"
91 ByteString substring = ByteString.copyFrom(bytes).substring(500);
98 ByteString byteString = ByteString.copyFrom(bytes, 500, 200);
100 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
105 ByteString byteString = ByteString.copyFrom(bytes)
    [all...]
CodedInputStreamTest.java 359 builder.setOptionalBytes(ByteString.copyFrom(blob));
363 // directly from a ByteString, so that CodedInputStream uses buffered
378 ByteString.Output rawOutput = ByteString.newOutput();
418 ByteString data64 = makeRecursiveMessage(64).toByteString();
419 ByteString data65 = makeRecursiveMessage(65).toByteString();
487 ByteString.Output rawOutput = ByteString.newOutput();
  /external/chromium_org/crypto/
openpgp_symmetric_encryption.cc 616 // ByteString is used throughout in order to avoid signedness issues with a
618 typedef std::basic_string<uint8> ByteString;
620 static ByteString Encrypt(base::StringPiece plaintext,
622 ByteString key;
623 ByteString ske = SerializeSymmetricKeyEncrypted(passphrase, &key);
625 ByteString literal_data = SerializeLiteralData(plaintext);
626 ByteString se = SerializeSymmetricallyEncrypted(literal_data, key);
633 static ByteString MakePacket(unsigned tag, const ByteString& contents) {
634 ByteString header
    [all...]
  /external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 51 * Like {@link String}, the contents of a {@link ByteString} can never be
60 public abstract class ByteString implements Iterable<Byte> {
64 * this, we just copy their bytes on {@link #concat(ByteString)}.
71 * When copying an InputStream into a ByteString with .readFrom(),
79 * Empty {@code ByteString}.
81 public static final ByteString EMPTY = new LiteralByteString(new byte[0]);
84 ByteString() {}
99 * Return a {@link ByteString.ByteIterator} over the bytes in the ByteString.
139 // ByteString -> substrin
    [all...]
  /external/protobuf/java/src/test/java/com/google/protobuf/
CodedInputStreamTest.java 364 builder.setOptionalBytes(ByteString.copyFrom(blob));
368 // directly from a ByteString, so that CodedInputStream uses buffered
383 ByteString.Output rawOutput = ByteString.newOutput();
423 ByteString data64 = makeRecursiveMessage(64).toByteString();
424 ByteString data65 = makeRecursiveMessage(65).toByteString();
492 ByteString.Output rawOutput = ByteString.newOutput();

Completed in 305 milliseconds