public static void Encode(BinaryWriter writer, StreamId streamId) { P2ptpCommon.EncodeUInt32(writer, streamId?.Id ?? 0); }
public static void Encode(StreamId streamId, byte[] data, ref int index) { P2ptpCommon.EncodeUInt32(data, ref index, streamId?.Id ?? 0); }