Home
last modified time | relevance | path

Searched refs:byteSource (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava-tests/test/com/google/common/io/
DTestCharSource.java32 private final TestByteSource byteSource; field in TestCharSource
35 this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); in TestCharSource()
40 return byteSource.wasStreamOpened(); in wasStreamOpened()
45 return byteSource.wasStreamClosed(); in wasStreamClosed()
50 return new InputStreamReader(byteSource.openStream(), UTF_8); in openStream()
DByteSourceTest.java167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII)); in testHash() local
170 assertEquals("cfa0c5002275c90508338a5cdb2a9781", byteSource.hash(Hashing.md5()).toString()); in testHash()
/external/protobuf/js/binary/
Dutils.js898 jspb.utils.debugBytesToTextFormat = function(byteSource) { argument
900 if (byteSource) {
901 var bytes = jspb.utils.byteSourceToUint8Array(byteSource);