Home | History | Annotate | Download | only in conscrypt

Lines Matching defs:source

1 /* GENERATED SOURCE. DO NOT MODIFY. */
3 * Copyright (C) 2014 The Android Open Source Project
25 * Wrapped by a BoringSSL BIO to act as a source of bytes.
28 private OpenSSLBIOInputStream source;
35 private OpenSSLBIOSource(OpenSSLBIOInputStream source) {
36 this.source = source;
40 return source.getBioContext();
44 if (source != null) {
45 NativeCrypto.BIO_free_all(source.getBioContext());
46 source = null;
60 private final ByteBuffer source;
62 ByteBufferInputStream(ByteBuffer source) {
63 this.source = source;
68 if (source.remaining() > 0) {
69 return source.get();
77 return source.limit() - source.position();
82 int originalPosition = source.position();
83 source.get(buffer);
84 return source.position() - originalPosition;
89 int toRead = Math.min(source.remaining(), byteCount);
90 int originalPosition = source.position();
91 source.get(buffer, byteOffset, toRead);
92 return source.position() - originalPosition;
97 source.reset();
102 long originalPosition = source.position();
103 source.position((int) (originalPosition + byteCount));
104 return source.position() - originalPosition;