HomeSort by relevance Sort by last modified time
    Searched refs:byteString (Results 1 - 25 of 30) sorted by null

1 2

  /external/pdfium/fxbarcode/
cbc_ean13.cpp 42 ByteString byteString = encodeContents.UTF8Encode();
43 int32_t checksum = pWriter->CalcChecksum(byteString);
44 byteString += checksum - 0 + '0';
45 encodeContents = byteString.UTF8Decode();
61 ByteString byteString = encodeContents.UTF8Encode();
65 pWriter->Encode(byteString, format, outWidth, outHeight));
cbc_upca.cpp 41 ByteString byteString = encodeContents.UTF8Encode();
42 int32_t checksum = pWriter->CalcChecksum(byteString);
43 byteString += checksum - 0 + '0';
44 encodeContents = byteString.UTF8Decode();
60 ByteString byteString = encodeContents.UTF8Encode();
66 pWriter->Encode(byteString, format, outWidth, outHeight));
cbc_ean8.cpp 41 ByteString byteString = encodeContents.UTF8Encode();
42 int32_t checksum = pWriter->CalcChecksum(byteString);
59 ByteString byteString = encodeContents.UTF8Encode();
63 pWriter->Encode(byteString, format, outWidth, outHeight));
cbc_codabar.cpp 58 ByteString byteString = filtercontents.UTF8Encode();
62 pWriter->Encode(byteString, format, outWidth, outHeight));
cbc_code128.cpp 52 ByteString byteString = encodeContents.UTF8Encode();
54 pWriter->Encode(byteString, format, outWidth, outHeight));
cbc_code39.cpp 45 ByteString byteString = filtercontents.UTF8Encode();
47 pWriter->Encode(byteString, format, outWidth, outHeight));
  /external/okhttp/okio/okio/src/test/java/okio/
ByteStringTest.java 39 ByteString byteString = ByteString.of(bytes, 2, 9);
42 assertEquals("llo, Worl", byteString.utf8());
46 ByteString byteString = ByteString.decodeHex("ab12");
47 assertEquals(-85, byteString.getByte(0));
48 assertEquals(18, byteString.getByte(1));
52 ByteString byteString = ByteString.decodeHex("ab12")
    [all...]
SegmentSharingTest.java 34 ByteString snapshot = new Buffer().snapshot();
35 assertEquivalent(snapshot, ByteString.EMPTY);
39 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot();
40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot());
41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot());
42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs));
46 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot()
    [all...]
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
ByteStringTest.java 33 import com.google.protobuf.ByteString.Output;
53 * Test methods with implementations in {@link ByteString}, plus do some top-level "integration"
93 ByteString substring = ByteString.copyFrom(bytes).substring(500);
100 ByteString byteString = ByteString.copyFrom(bytes, 500, 200);
102 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
107 ByteString byteString = ByteString.copyFrom(bytes)
    [all...]
RopeByteStringTest.java 57 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator();
76 // Build up a big ByteString from smaller pieces to force a rebalance
77 ByteString concatenated = ByteString.EMPTY;
79 concatenated = concatenated.concat(ByteString.copyFrom(testBytes, i * pieceSize, pieceSize));
86 ByteString testString = ByteString.copyFrom(testBytes);
98 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString);
103 ByteString unicode = ByteString.EMPTY
    [all...]
AbstractMessageTest.java 258 ByteString bytes = builder.buildPartial().toByteString();
535 ByteString byteString = ByteString.copyFromUtf8("some text");
536 AbstractMessageLite.checkByteStringIsUtf8(byteString);
541 ByteString byteString =
542 ByteString.copyFrom(new byte[]{(byte) 0x80}); // A lone continuation byte.
544 AbstractMessageLite.checkByteStringIsUtf8(byteString);
  /external/okhttp/okio/okio/src/main/java/okio/
ByteString.java 46 public class ByteString implements Serializable, Comparable<ByteString> {
51 /** A singleton empty {@code ByteString}. */
52 public static final ByteString EMPTY = ByteString.of();
58 ByteString(byte[] data) {
65 public static ByteString of(byte... data) {
67 return new ByteString(data.clone());
74 public static ByteString of(byte[] data, int offset, int byteCount) {
80 return new ByteString(copy)
    [all...]
BufferedSink.java 30 BufferedSink write(ByteString byteString) throws IOException;
RealBufferedSink.java 49 @Override public BufferedSink write(ByteString byteString) throws IOException {
51 buffer.write(byteString);
  /external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
ByteString.java 48 public class ByteString implements Serializable, Comparable<ByteString> {
53 /** A singleton empty {@code ByteString}. */
54 public static final ByteString EMPTY = ByteString.of();
60 ByteString(byte[] data) {
67 public static ByteString of(byte... data) {
69 return new ByteString(data.clone());
76 public static ByteString of(byte[] data, int offset, int byteCount) {
82 return new ByteString(copy)
    [all...]
BufferedSink.java 32 BufferedSink write(ByteString byteString) throws IOException;
RealBufferedSink.java 50 @Override public BufferedSink write(ByteString byteString) throws IOException {
52 buffer.write(byteString);
  /external/conscrypt/openjdk/src/test/java/org/conscrypt/
SSLUtilsTest.java 98 String byteString = Byte.toString(b);
102 assertEquals(byteString, "RSA", keyType);
105 assertEquals(byteString, "EC", keyType);
108 assertNull(byteString, keyType);
  /external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
SSLUtilsTest.java 102 String byteString = Byte.toString(b);
106 assertEquals(byteString, "RSA", keyType);
109 assertEquals(byteString, "EC", keyType);
112 assertNull(byteString, keyType);
  /external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
TestStringByteConverter.java 123 StringByteConverter byteString = type == Type.utf8 ? new Utf8StringByteConverter()
126 int byteLen = byteString.toBytes(test, bytes, 0);
129 byteString.clear();
132 int byteCount = byteString.toBytes(test.charAt(i), bytes2, 0);
156 byteString.fromBytes(bytes, 0, byteLen, chars);
  /external/cldr/tools/java/org/unicode/cldr/util/
StateDictionary.java 37 private final StringByteConverter byteString;
61 this.byteString = byteConverter;
280 final private byte[] matchByteBuffer = new byte[byteString
302 byteString.clear();
329 matchByteBufferLength = byteString.toBytes(ch, matchByteBuffer, 0);
335 matchByteBufferLength = byteString.toBytes(matchByteBuffer, 0);
345 // to check after each nextByte. However, if the byteString converts C to a sequence of bytes that
597 byteString.fromBytes(soFar, 0, len, buffer);
  /external/protobuf/java/core/src/main/java/com/google/protobuf/
RopeByteString.java 52 * {@link com.google.protobuf.ByteString.LeafByteString}.
73 final class RopeByteString extends ByteString {
118 private final ByteString left;
119 private final ByteString right;
132 private RopeByteString(ByteString left, ByteString right) {
143 * either a {@link com.google.protobuf.ByteString.LeafByteString} or a
148 * ByteString#CONCATENATE_BY_COPY_SIZE} may be copied by value here, as in
155 static ByteString concatenate(ByteString left, ByteString right)
    [all...]
AbstractMessageLite.java 53 public ByteString toByteString() {
55 final ByteString.CodedBuilder out =
56 ByteString.newCodedBuilder(getSerializedSize());
61 "Serializing to a ByteString threw an IOException (should " +
112 protected static void checkByteStringIsUtf8(ByteString byteString)
114 if (!byteString.isValidUtf8()) {
150 public BuilderType mergeFrom(final ByteString data) throws InvalidProtocolBufferException {
160 "Reading from a ByteString threw an IOException (should " +
167 final ByteString data, final ExtensionRegistryLite extensionRegistry
    [all...]
Internal.java 102 public static ByteString bytesDefaultValue(String bytes) {
103 return ByteString.copyFrom(bytes.getBytes(ISO_8859_1));
150 * Arrays.equals(byteString.toByteArray(),
151 * new String(byteString.toByteArray(), "UTF-8").getBytes("UTF-8"))
167 * ByteString#isValidUtf8()}. Calling that method directly is preferred.
169 * @param byteString the string to check
172 public static boolean isValidUtf8(ByteString byteString) {
173 return byteString.isValidUtf8();
177 * Like {@link #isValidUtf8(ByteString)} but for byte arrays
    [all...]
ByteString.java 59 * Like {@link String}, the contents of a {@link ByteString} can never be
68 public abstract class ByteString implements Iterable<Byte>, Serializable {
72 * this, we just copy their bytes on {@link #concat(ByteString)}.
79 * When copying an InputStream into a ByteString with .readFrom(),
87 * Empty {@code ByteString}.
89 public static final ByteString EMPTY = new LiteralByteString(Internal.EMPTY_BYTE_ARRAY);
147 ByteString() {}
162 * Return a {@link ByteString.ByteIterator} over the bytes in the ByteString.
233 // ByteString -> substrin
    [all...]

Completed in 596 milliseconds

1 2