@observertc/samples-decoder
Version:
ObserveRTC Library for Decoding Samples
26 lines • 1.25 kB
TypeScript
import { Decoder } from "./utils";
import { ClientSample_PeerConnectionSample_DataChannelStats as InputDataChannelStats } from "./InputSamples";
import { DataChannelStats as OutputDataChannelStats } from "./OutputSamples";
import { AttachmentDecoder } from "./utils";
export declare class DataChannelDecoder implements Decoder<InputDataChannelStats, OutputDataChannelStats | undefined> {
readonly id: string;
private readonly _attachmentsDecoder;
private _visited;
private readonly _timestampDecoder;
private readonly _labelDecoder;
private readonly _protocolDecoder;
private readonly _dataChannelIdentifierDecoder;
private readonly _stateDecoder;
private readonly _messagesSentDecoder;
private readonly _bytesSentDecoder;
private readonly _messagesReceivedDecoder;
private readonly _bytesReceivedDecoder;
private _actualValue;
constructor(id: string, _attachmentsDecoder: AttachmentDecoder);
get visited(): boolean;
reset(): void;
decode(input: InputDataChannelStats): OutputDataChannelStats | undefined;
get actualValue(): OutputDataChannelStats | undefined;
set actualValue(sample: OutputDataChannelStats | undefined);
}
//# sourceMappingURL=DataChannelDecoder.d.ts.map