- Preparing search index...
- The search index is not available
@u4/adbkit
Constructors
constructor
- new Parser(stream: Duplex): Parser
-
Properties
Private
ended
ended: boolean = false
lastMessage
lastMessage: string = ''
Methods
end
- end(): Promise<true>
-
Returns Promise<true>
raw
- raw(): Duplex
-
Returns Duplex
readAll
- readAll(): Promise<Buffer>
-
Returns Promise<Buffer>
readAscii
- readAscii(howMany: number): Promise<string>
-
Returns Promise<string>
readByteFlow
- readByteFlow(howMany: number, targetStream: Duplex): Promise<void>
-
Parameters
-
howMany: number
-
targetStream: Duplex
Returns Promise<void>
readBytes
- readBytes(howMany: number): Promise<Buffer>
-
Returns Promise<Buffer>
readCode
- readCode(...codes: string[]): Promise<string>
-
Returns Promise<string>
readLine
- readLine(encoding?: BufferEncoding): Promise<string>
-
Parameters
-
Optional
encoding: BufferEncoding
Returns Promise<string>
readUntil
- readUntil(code: number): Promise<Buffer>
-
Returns Promise<Buffer>
readValue
- readValue(): Promise<Buffer>
-
Returns Promise<Buffer>
- readValue(encoding: BufferEncoding): Promise<string>
-
Returns Promise<string>
searchLine
- searchLine(re: RegExp): Promise<RegExpExecArray>
-
Returns Promise<RegExpExecArray>
helper to read in Duplex stream