File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#if !os(WASI)
16
16
import Foundation
17
+ #endif
17
18
18
19
/// Helper methods for reading/writing messages with a length prefix.
19
20
public enum BinaryDelimited {
@@ -47,6 +48,7 @@ public enum BinaryDelimited {
47
48
case noBytesAvailable
48
49
}
49
50
51
+ #if !os(WASI)
50
52
/// Serialize a single size-delimited message to the given stream. Delimited
51
53
/// format allows a single file or stream to contain multiple messages,
52
54
/// whereas normally writing multiple non-delimited messages to the same
@@ -222,8 +224,10 @@ public enum BinaryDelimited {
222
224
partial: partial,
223
225
options: options)
224
226
}
227
+ #endif // !os(WASI)
225
228
}
226
229
230
+ #if !os(WASI)
227
231
// TODO: This should go away when encoding/decoding are more stream based
228
232
// as that should provide a more direct way to do this. This is basically
229
233
// a rewrite of BinaryDecoder.decodeVarint().
@@ -268,4 +272,4 @@ internal func decodeVarint(_ stream: InputStream) throws -> UInt64 {
268
272
}
269
273
}
270
274
}
271
- #endif
275
+ #endif // !os(WASI)
You can’t perform that action at this time.
0 commit comments