File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,41 @@ export interface GridFSFile {
56
56
57
57
/** @internal */
58
58
export interface GridFSBucketReadStreamPrivate {
59
+ /**
60
+ * The running total number of bytes read from the chunks collection.
61
+ */
59
62
bytesRead : number ;
63
+ /**
64
+ * The number of bytes to remove from the last chunk read in the file. This is non-zero
65
+ * if `end` is not equal to the length of the document and `end` is not a multiple
66
+ * of the chunkSize.
67
+ */
60
68
bytesToTrim : number ;
69
+
70
+ /**
71
+ * The number of bytes to remove from the first chunk read in the file. This is non-zero
72
+ * if `start` is not equal to the 0 and `start` is not a multiple
73
+ * of the chunkSize.
74
+ */
61
75
bytesToSkip : number ;
76
+
77
+ files : Collection < GridFSFile > ;
62
78
chunks : Collection < GridFSChunk > ;
63
79
cursor ?: FindCursor < GridFSChunk > ;
80
+
81
+ /** The running total number of chunks read from the chunks collection. */
64
82
expected : number ;
65
- files : Collection < GridFSFile > ;
83
+
84
+ /**
85
+ * The filter used to search in the _files_ collection (i.e., `{ _id: <> }`)
86
+ * This is not the same filter used when reading chunks from the chunks collection.
87
+ */
66
88
filter : Document ;
89
+
90
+ /** Indicates whether or not download has started. */
67
91
init : boolean ;
92
+
93
+ /** The expected number of chunks to read, calculated from start, end, chunkSize and file length. */
68
94
expectedEnd : number ;
69
95
file ?: GridFSFile ;
70
96
options : {
You can’t perform that action at this time.
0 commit comments