|
1 | 1 | // Copyright (c) .NET Foundation. All rights reserved.
|
2 | 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
3 | 3 |
|
4 |
| -namespace MessagePack |
5 |
| -{ |
6 |
| - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] |
7 |
| - public partial struct ExtensionHeader |
8 |
| - { |
9 |
| - private int _dummyPrimitive; |
10 |
| - public ExtensionHeader(sbyte typeCode, int length) { throw null; } |
11 |
| - public ExtensionHeader(sbyte typeCode, uint length) { throw null; } |
12 |
| - public uint Length { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
13 |
| - public sbyte TypeCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
14 |
| - } |
15 |
| - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] |
16 |
| - public partial struct ExtensionResult |
17 |
| - { |
18 |
| - private object _dummy; |
19 |
| - private int _dummyPrimitive; |
20 |
| - public ExtensionResult(sbyte typeCode, System.Buffers.ReadOnlySequence<byte> data) { throw null; } |
21 |
| - public ExtensionResult(sbyte typeCode, System.Memory<byte> data) { throw null; } |
22 |
| - public System.Buffers.ReadOnlySequence<byte> Data { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
23 |
| - public MessagePack.ExtensionHeader Header { get { throw null; } } |
24 |
| - public sbyte TypeCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
25 |
| - } |
26 |
| - public static partial class MessagePackCode |
27 |
| - { |
28 |
| - public const byte Array16 = (byte)220; |
29 |
| - public const byte Array32 = (byte)221; |
30 |
| - public const byte Bin16 = (byte)197; |
31 |
| - public const byte Bin32 = (byte)198; |
32 |
| - public const byte Bin8 = (byte)196; |
33 |
| - public const byte Ext16 = (byte)200; |
34 |
| - public const byte Ext32 = (byte)201; |
35 |
| - public const byte Ext8 = (byte)199; |
36 |
| - public const byte False = (byte)194; |
37 |
| - public const byte FixExt1 = (byte)212; |
38 |
| - public const byte FixExt16 = (byte)216; |
39 |
| - public const byte FixExt2 = (byte)213; |
40 |
| - public const byte FixExt4 = (byte)214; |
41 |
| - public const byte FixExt8 = (byte)215; |
42 |
| - public const byte Float32 = (byte)202; |
43 |
| - public const byte Float64 = (byte)203; |
44 |
| - public const byte Int16 = (byte)209; |
45 |
| - public const byte Int32 = (byte)210; |
46 |
| - public const byte Int64 = (byte)211; |
47 |
| - public const byte Int8 = (byte)208; |
48 |
| - public const byte Map16 = (byte)222; |
49 |
| - public const byte Map32 = (byte)223; |
50 |
| - public const byte MaxFixArray = (byte)159; |
51 |
| - public const byte MaxFixInt = (byte)127; |
52 |
| - public const byte MaxFixMap = (byte)143; |
53 |
| - public const byte MaxFixStr = (byte)191; |
54 |
| - public const byte MaxNegativeFixInt = (byte)255; |
55 |
| - public const byte MinFixArray = (byte)144; |
56 |
| - public const byte MinFixInt = (byte)0; |
57 |
| - public const byte MinFixMap = (byte)128; |
58 |
| - public const byte MinFixStr = (byte)160; |
59 |
| - public const byte MinNegativeFixInt = (byte)224; |
60 |
| - public const byte NeverUsed = (byte)193; |
61 |
| - public const byte Nil = (byte)192; |
62 |
| - public const byte Str16 = (byte)218; |
63 |
| - public const byte Str32 = (byte)219; |
64 |
| - public const byte Str8 = (byte)217; |
65 |
| - public const byte True = (byte)195; |
66 |
| - public const byte UInt16 = (byte)205; |
67 |
| - public const byte UInt32 = (byte)206; |
68 |
| - public const byte UInt64 = (byte)207; |
69 |
| - public const byte UInt8 = (byte)204; |
70 |
| - public static bool IsSignedInteger(byte code) { throw null; } |
71 |
| - public static string ToFormatName(byte code) { throw null; } |
72 |
| - public static MessagePack.MessagePackType ToMessagePackType(byte code) { throw null; } |
73 |
| - } |
74 |
| - public static partial class MessagePackRange |
75 |
| - { |
76 |
| - public const int MaxFixArrayCount = 15; |
77 |
| - public const int MaxFixMapCount = 15; |
78 |
| - public const int MaxFixNegativeInt = -1; |
79 |
| - public const int MaxFixPositiveInt = 127; |
80 |
| - public const int MaxFixStringLength = 31; |
81 |
| - public const int MinFixNegativeInt = -32; |
82 |
| - public const int MinFixStringLength = 0; |
83 |
| - } |
84 |
| - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] |
85 |
| - public ref partial struct MessagePackReader |
86 |
| - { |
87 |
| - private object _dummy; |
88 |
| - public MessagePackReader(System.Buffers.ReadOnlySequence<byte> readOnlySequence) { throw null; } |
89 |
| - public MessagePackReader(System.ReadOnlyMemory<byte> memory) { throw null; } |
90 |
| - public long Consumed { get { throw null; } } |
91 |
| - public bool End { get { throw null; } } |
92 |
| - public bool IsNil { get { throw null; } } |
93 |
| - public byte NextCode { get { throw null; } } |
94 |
| - public MessagePack.MessagePackType NextMessagePackType { get { throw null; } } |
95 |
| - public System.SequencePosition Position { get { throw null; } } |
96 |
| - public System.Buffers.ReadOnlySequence<byte> Sequence { get { throw null; } } |
97 |
| - public MessagePack.MessagePackReader Clone(System.Buffers.ReadOnlySequence<byte> readOnlySequence) { throw null; } |
98 |
| - public MessagePack.MessagePackReader CreatePeekReader() { throw null; } |
99 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public int ReadArrayHeader() { throw null; } |
100 |
| - public bool ReadBoolean() { throw null; } |
101 |
| - public byte ReadByte() { throw null; } |
102 |
| - public System.Buffers.ReadOnlySequence<byte> ReadBytes() { throw null; } |
103 |
| - public char ReadChar() { throw null; } |
104 |
| - public System.DateTime ReadDateTime() { throw null; } |
105 |
| - public double ReadDouble() { throw null; } |
106 |
| - public MessagePack.ExtensionResult ReadExtensionFormat() { throw null; } |
107 |
| - public MessagePack.ExtensionHeader ReadExtensionFormatHeader() { throw null; } |
108 |
| - public short ReadInt16() { throw null; } |
109 |
| - public int ReadInt32() { throw null; } |
110 |
| - public long ReadInt64() { throw null; } |
111 |
| - public int ReadMapHeader() { throw null; } |
112 |
| - public MessagePack.Nil ReadNil() { throw null; } |
113 |
| - public System.Buffers.ReadOnlySequence<byte> ReadRaw(long length) { throw null; } |
114 |
| - public sbyte ReadSByte() { throw null; } |
115 |
| - public float ReadSingle() { throw null; } |
116 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public string ReadString() { throw null; } |
117 |
| - public System.Buffers.ReadOnlySequence<byte> ReadStringSegment() { throw null; } |
118 |
| - public ushort ReadUInt16() { throw null; } |
119 |
| - public uint ReadUInt32() { throw null; } |
120 |
| - public ulong ReadUInt64() { throw null; } |
121 |
| - public void Skip() { } |
122 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public bool TryReadNil() { throw null; } |
123 |
| - } |
124 |
| - public enum MessagePackType : byte |
125 |
| - { |
126 |
| - Array = (byte)7, |
127 |
| - Binary = (byte)6, |
128 |
| - Boolean = (byte)3, |
129 |
| - Extension = (byte)9, |
130 |
| - Float = (byte)4, |
131 |
| - Integer = (byte)1, |
132 |
| - Map = (byte)8, |
133 |
| - Nil = (byte)2, |
134 |
| - String = (byte)5, |
135 |
| - Unknown = (byte)0, |
136 |
| - } |
137 |
| - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] |
138 |
| - public ref partial struct MessagePackWriter |
139 |
| - { |
140 |
| - private object _dummy; |
141 |
| - private int _dummyPrimitive; |
142 |
| - public MessagePackWriter(System.Buffers.IBufferWriter<byte> writer) { throw null; } |
143 |
| - public bool OldSpec { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
144 |
| - public MessagePack.MessagePackWriter Clone(System.Buffers.IBufferWriter<byte> writer) { throw null; } |
145 |
| - public void Flush() { } |
146 |
| - public void Write(bool value) { } |
147 |
| - public void Write(System.Buffers.ReadOnlySequence<byte> src) { } |
148 |
| - public void Write(byte value) { } |
149 |
| - public void Write(char value) { } |
150 |
| - public void Write(System.DateTime dateTime) { } |
151 |
| - public void Write(double value) { } |
152 |
| - public void Write(short value) { } |
153 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Write(int value) { } |
154 |
| - public void Write(long value) { } |
155 |
| - public void Write(System.ReadOnlySpan<byte> src) { } |
156 |
| - public void Write(System.ReadOnlySpan<char> value) { } |
157 |
| - public void Write(sbyte value) { } |
158 |
| - public void Write(float value) { } |
159 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Write(string value) { } |
160 |
| - public void Write(ushort value) { } |
161 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void Write(uint value) { } |
162 |
| - public void Write(ulong value) { } |
163 |
| - public void WriteArrayHeader(int count) { } |
164 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void WriteArrayHeader(uint count) { } |
165 |
| - public void WriteExtensionFormat(MessagePack.ExtensionResult extensionData) { } |
166 |
| - public void WriteExtensionFormatHeader(MessagePack.ExtensionHeader extensionHeader) { } |
167 |
| - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)][System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] |
168 |
| - public void WriteFixedArrayHeaderUnsafe(uint count) { } |
169 |
| - public void WriteInt16(short value) { } |
170 |
| - public void WriteInt32(int value) { } |
171 |
| - public void WriteInt64(long value) { } |
172 |
| - public void WriteInt8(sbyte value) { } |
173 |
| - public void WriteMapHeader(int count) { } |
174 |
| - public void WriteMapHeader(uint count) { } |
175 |
| - public void WriteNil() { } |
176 |
| - public void WriteRaw(System.Buffers.ReadOnlySequence<byte> rawMessagePackBlock) { } |
177 |
| - public void WriteRaw(System.ReadOnlySpan<byte> rawMessagePackBlock) { } |
178 |
| - public void WriteString(System.Buffers.ReadOnlySequence<byte> utf8stringBytes) { } |
179 |
| - public void WriteString(System.ReadOnlySpan<byte> utf8stringBytes) { } |
180 |
| - public void WriteUInt16(ushort value) { } |
181 |
| - public void WriteUInt32(uint value) { } |
182 |
| - public void WriteUInt64(ulong value) { } |
183 |
| - public void WriteUInt8(byte value) { } |
184 |
| - } |
185 |
| - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential, Size=1)] |
186 |
| - public partial struct Nil : System.IEquatable<MessagePack.Nil> |
187 |
| - { |
188 |
| - public static readonly MessagePack.Nil Default; |
189 |
| - public bool Equals(MessagePack.Nil other) { throw null; } |
190 |
| - public override bool Equals(object obj) { throw null; } |
191 |
| - public override int GetHashCode() { throw null; } |
192 |
| - public override string ToString() { throw null; } |
193 |
| - } |
194 |
| - public static partial class ReservedMessagePackExtensionTypeCode |
195 |
| - { |
196 |
| - public const sbyte DateTime = (sbyte)-1; |
197 |
| - } |
198 |
| -} |
199 | 4 | namespace Microsoft.AspNetCore.Builder
|
200 | 5 | {
|
201 | 6 | public static partial class ComponentEndpointConventionBuilderExtensions
|
|
0 commit comments