summaryrefslogtreecommitdiff
path: root/src/node_crypto_bio.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-11-28 02:49:30 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-12-07 03:47:57 +0400
commit03747f69fba646dc9902519c1736d5f4f267ef7b (patch)
tree8f77bcc99ae036a4574926dbf63cdbe418499c6c /src/node_crypto_bio.h
parentf5ab3e4c5cd37b76d60f657190b315183dbefeba (diff)
downloadandroid-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.tar.gz
android-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.tar.bz2
android-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.zip
tls_wrap: use writev when possible
Try writing multiple chunks from NodeBIO if possible.
Diffstat (limited to 'src/node_crypto_bio.h')
-rw-r--r--src/node_crypto_bio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_crypto_bio.h b/src/node_crypto_bio.h
index 615fea944e..0b9b3440c5 100644
--- a/src/node_crypto_bio.h
+++ b/src/node_crypto_bio.h
@@ -55,6 +55,10 @@ class NodeBIO {
// contiguous data available to read
char* Peek(size_t* size);
+ // Return pointers and sizes of multiple internal data chunks available for
+ // reading
+ size_t PeekMultiple(char** out, size_t* size, size_t* count);
+
// Find first appearance of `delim` in buffer or `limit` if `delim`
// wasn't found.
size_t IndexOf(char delim, size_t limit);