|
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
| 2 | +// The .NET Foundation licenses this file to you under the MIT license. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | +// Changes to this file must follow the https://aka.ms/api-review process. |
| 5 | +// ------------------------------------------------------------------------------ |
| 6 | + |
| 7 | +namespace System.Formats.Nrbf |
| 8 | +{ |
| 9 | + public abstract partial class ArrayRecord : System.Formats.Nrbf.SerializationRecord |
| 10 | + { |
| 11 | + internal ArrayRecord() { } |
| 12 | + public override System.Formats.Nrbf.SerializationRecordId Id { get { throw null; } } |
| 13 | + public abstract System.ReadOnlySpan<int> Lengths { get; } |
| 14 | + public int Rank { get { throw null; } } |
| 15 | + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")] |
| 16 | + public System.Array GetArray(System.Type expectedArrayType, bool allowNulls = true) { throw null; } |
| 17 | + } |
| 18 | + public abstract partial class ClassRecord : System.Formats.Nrbf.SerializationRecord |
| 19 | + { |
| 20 | + internal ClassRecord() { } |
| 21 | + public override System.Formats.Nrbf.SerializationRecordId Id { get { throw null; } } |
| 22 | + public System.Collections.Generic.IEnumerable<string> MemberNames { get { throw null; } } |
| 23 | + public override System.Reflection.Metadata.TypeName TypeName { get { throw null; } } |
| 24 | + public System.Formats.Nrbf.ArrayRecord? GetArrayRecord(string memberName) { throw null; } |
| 25 | + public bool GetBoolean(string memberName) { throw null; } |
| 26 | + public byte GetByte(string memberName) { throw null; } |
| 27 | + public char GetChar(string memberName) { throw null; } |
| 28 | + public System.Formats.Nrbf.ClassRecord? GetClassRecord(string memberName) { throw null; } |
| 29 | + public System.DateTime GetDateTime(string memberName) { throw null; } |
| 30 | + public decimal GetDecimal(string memberName) { throw null; } |
| 31 | + public double GetDouble(string memberName) { throw null; } |
| 32 | + public short GetInt16(string memberName) { throw null; } |
| 33 | + public int GetInt32(string memberName) { throw null; } |
| 34 | + public long GetInt64(string memberName) { throw null; } |
| 35 | + public object? GetRawValue(string memberName) { throw null; } |
| 36 | + public sbyte GetSByte(string memberName) { throw null; } |
| 37 | + public System.Formats.Nrbf.SerializationRecord? GetSerializationRecord(string memberName) { throw null; } |
| 38 | + public float GetSingle(string memberName) { throw null; } |
| 39 | + public string? GetString(string memberName) { throw null; } |
| 40 | + public System.TimeSpan GetTimeSpan(string memberName) { throw null; } |
| 41 | + public ushort GetUInt16(string memberName) { throw null; } |
| 42 | + public uint GetUInt32(string memberName) { throw null; } |
| 43 | + public ulong GetUInt64(string memberName) { throw null; } |
| 44 | + public bool HasMember(string memberName) { throw null; } |
| 45 | + } |
| 46 | + public static partial class NrbfDecoder |
| 47 | + { |
| 48 | + public static System.Formats.Nrbf.SerializationRecord Decode(System.IO.Stream payload, out System.Collections.Generic.IReadOnlyDictionary<System.Formats.Nrbf.SerializationRecordId, System.Formats.Nrbf.SerializationRecord> recordMap, System.Formats.Nrbf.PayloadOptions options=null, bool leaveOpen=false) { throw null; } |
| 49 | + public static System.Formats.Nrbf.SerializationRecord Decode(System.IO.Stream payload, System.Formats.Nrbf.PayloadOptions? options=null, bool leaveOpen=false) { throw null; } |
| 50 | + public static System.Formats.Nrbf.ClassRecord DecodeClassRecord(System.IO.Stream payload, System.Formats.Nrbf.PayloadOptions? options=null, bool leaveOpen=false) { throw null; } |
| 51 | + public static bool StartsWithPayloadHeader(byte[] bytes) { throw null; } |
| 52 | + public static bool StartsWithPayloadHeader(System.IO.Stream stream) { throw null; } |
| 53 | + } |
| 54 | + public sealed partial class PayloadOptions |
| 55 | + { |
| 56 | + public PayloadOptions() { } |
| 57 | + public System.Reflection.Metadata.TypeNameParseOptions? TypeNameParseOptions { get { throw null; } set { } } |
| 58 | + public bool UndoTruncatedTypeNames { get { throw null; } set { } } |
| 59 | + } |
| 60 | + public abstract partial class PrimitiveTypeRecord : System.Formats.Nrbf.SerializationRecord |
| 61 | + { |
| 62 | + internal PrimitiveTypeRecord() { } |
| 63 | + public object Value { get { throw null; } } |
| 64 | + } |
| 65 | + public abstract partial class PrimitiveTypeRecord<T> : System.Formats.Nrbf.PrimitiveTypeRecord |
| 66 | + { |
| 67 | + internal PrimitiveTypeRecord() { } |
| 68 | + public override System.Reflection.Metadata.TypeName TypeName { get { throw null; } } |
| 69 | + public new T Value { get { throw null; } } |
| 70 | + } |
| 71 | + public abstract partial class SerializationRecord |
| 72 | + { |
| 73 | + internal SerializationRecord() { } |
| 74 | + public abstract System.Formats.Nrbf.SerializationRecordId Id { get; } |
| 75 | + public abstract System.Formats.Nrbf.SerializationRecordType RecordType { get; } |
| 76 | + public abstract System.Reflection.Metadata.TypeName TypeName { get; } |
| 77 | + public bool TypeNameMatches(System.Type type) { throw null; } |
| 78 | + } |
| 79 | + public partial struct SerializationRecordId : System.IEquatable<System.Formats.Nrbf.SerializationRecordId> |
| 80 | + { |
| 81 | + public bool Equals(System.Formats.Nrbf.SerializationRecordId other) { throw null; } |
| 82 | + public override bool Equals(object? obj) { throw null; } |
| 83 | + public override int GetHashCode() { throw null; } |
| 84 | + } |
| 85 | + public enum SerializationRecordType |
| 86 | + { |
| 87 | + SerializedStreamHeader = 0, |
| 88 | + ClassWithId = 1, |
| 89 | + SystemClassWithMembers = 2, |
| 90 | + ClassWithMembers = 3, |
| 91 | + SystemClassWithMembersAndTypes = 4, |
| 92 | + ClassWithMembersAndTypes = 5, |
| 93 | + BinaryObjectString = 6, |
| 94 | + BinaryArray = 7, |
| 95 | + MemberPrimitiveTyped = 8, |
| 96 | + MemberReference = 9, |
| 97 | + ObjectNull = 10, |
| 98 | + MessageEnd = 11, |
| 99 | + BinaryLibrary = 12, |
| 100 | + ObjectNullMultiple256 = 13, |
| 101 | + ObjectNullMultiple = 14, |
| 102 | + ArraySinglePrimitive = 15, |
| 103 | + ArraySingleObject = 16, |
| 104 | + ArraySingleString = 17, |
| 105 | + MethodCall = 21, |
| 106 | + MethodReturn = 22, |
| 107 | + } |
| 108 | + public abstract partial class SZArrayRecord<T> : System.Formats.Nrbf.ArrayRecord |
| 109 | + { |
| 110 | + internal SZArrayRecord() { } |
| 111 | + public int Length { get { throw null; } } |
| 112 | + public override System.ReadOnlySpan<int> Lengths { get { throw null; } } |
| 113 | + public abstract T?[] GetArray(bool allowNulls = true); |
| 114 | + } |
| 115 | +} |
0 commit comments