You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -91,15 +91,15 @@ The <dfn>compress and enqueue a chunk</dfn> algorithm, given a {{CompressionStre
91
91
1. If *chunk* is not a {{BufferSource}} type, then throw a {{TypeError}}.
92
92
1. Let *buffer* be the result of compressing *chunk* with *cs*'s <a for=CompressionStream>format</a> and <a for=CompressionStream>context</a>.
93
93
1. If *buffer* is empty, return.
94
-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
95
-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
94
+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
95
+
1. [=list/For each=]{{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
96
96
97
97
The <dfn>compress flush and enqueue</dfn> algorithm, which handles the end of data from the input {{ReadableStream}} object, given a {{CompressionStream}} object *cs*, runs these steps:
98
98
99
99
1. Let *buffer* be the result of compressing an empty input with *cs*'s <a for=CompressionStream>format</a> and <a for=CompressionStream>context</a>, with the finish flag.
100
100
1. If *buffer* is empty, return.
101
-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
102
-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
101
+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
102
+
1. [=list/For each=]{{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *cs*'s [=GenericTransformStream/transform=].
@@ -126,16 +126,16 @@ The <dfn>decompress and enqueue a chunk</dfn> algorithm, given a {{Decompression
126
126
1. If *chunk* is not a {{BufferSource}} type, then throw a {{TypeError}}.
127
127
1. Let *buffer* be the result of decompressing *chunk* with *ds*'s <a for=DecompressionStream>format</a> and <a for=DecompressionStream>context</a>. If this results in an error, then throw a {{TypeError}}.
128
128
1. If *buffer* is empty, return.
129
-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
130
-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
129
+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
130
+
1. [=list/For each=]{{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
131
131
132
132
The <dfn>decompress flush and enqueue</dfn> algorithm, which handles the end of data from the input {{ReadableStream}} object, given a {{DecompressionStream}} object *ds*, runs these steps:
133
133
134
134
1. Let *buffer* be the result of decompressing an empty input with *ds*'s <a for=DecompressionStream>format</a> and <a for=DecompressionStream>context</a>, with the finish flag.
135
135
1. If the end of the compressed input has not been reached, then throw a {{TypeError}}.
136
136
1. If *buffer* is empty, return.
137
-
1. Split *buffer* into one or more non-empty pieces and convert them into {{Uint8Array}}s.
138
-
1. For each {{Uint8Array}} *array*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
137
+
1. Let *arrays* be the result of splitting *buffer* into one or more non-empty pieces and converting them into {{Uint8Array}}s.
138
+
1. [=list/For each=]{{Uint8Array}} *array* of *arrays*, [=TransformStream/enqueue=] *array* in *ds*'s [=GenericTransformStream/transform=].
139
139
140
140
141
141
# Privacy and security considerations # {#privacy-security}
0 commit comments