This repository was archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathReadableStream.cs
More file actions
74 lines (51 loc) · 1.92 KB
/
ReadableStream.cs
File metadata and controls
74 lines (51 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using NodeJS.BufferModule;
using NodeJS.EventsModule;
namespace NodeJS {
[Imported]
public class ReadableStream : EventEmitter {
[NonScriptable]
public ReadableStream() {}
[IntrinsicProperty]
public bool Readable { get; private set; }
public void SetEncoding(Encoding encoding) {}
public void Pause() {}
public void Resume() {}
public void Destroy() {}
public void Pipe(WritableStream dest) {}
public void Pipe(WritableStream dest, PipeOptions options) {}
public event Action<Buffer> OnData {
[InlineCode("{this}.addListener('data', {value})")] add {}
[InlineCode("{this}.removeListener('data', {value})")] remove {}
}
[InlineCode("{this}.once('data', {callback})")]
public void OnceData(Action<Buffer> callback) {}
public event Action<string> OnEncodedData {
[InlineCode("{this}.addListener('data', {value})")] add {}
[InlineCode("{this}.removeListener('data', {value})")] remove {}
}
[InlineCode("{this}.once('data', {callback})")]
public void OnceEncodedData(Action<string> callback) {}
public event Action OnEnd {
[InlineCode("{this}.addListener('end', {value})")] add {}
[InlineCode("{this}.removeListener('end', {value})")] remove {}
}
[InlineCode("{this}.once('end', {callback})")]
public void OnceEnd(Action callback) {}
public event Action<Error> OnError {
[InlineCode("{this}.addListener('error', {value})")] add {}
[InlineCode("{this}.removeListener('error', {value})")] remove {}
}
[InlineCode("{this}.once('error', {callback})")]
public void OnceError(Action<Error> callback) {}
public event Action OnClose {
[InlineCode("{this}.addListener('close', {value})")] add {}
[InlineCode("{this}.removeListener('close', {value})")] remove {}
}
[InlineCode("{this}.once('close', {callback})")]
public void OnceClose(Action callback) {}
}
}