Exemplo n.º 1
0
 // these exist to make the code more obviously correct
 private static byte CurrentVersion(this ref Raw.EpochHeader _) => LogRecordVersion.LogRecordV1;
 public static void SetDepth(this ref BatchedSprite sprite, float depth)
 public static void WriteMapHeader(this ref MessagePackWriter writer, int count, ref int idx)
 unsafe public static NativeArray <T> ToOptionalDataArray <T>(this ref EntityQuery query, Allocator allocator, T defaultValue = default)
Exemplo n.º 5
0
 /// <summary>
 /// Sets the given flag in the specified variable.
 /// </summary>
 /// <param name="in_enumVariable">The enum variable under consideration.</param>
 /// <param name="in_flagToTest">The flag to set.</param>
 /// <returns>The variable with the flag set.</returns>
 public static ParquetMask Set(this ref ParquetMask in_enumVariable, ParquetMask in_flagToTest)
Exemplo n.º 6
0
 public static void WriteString(this ref Span <byte> buffer, ref int offset, StringValues value)
Exemplo n.º 7
0
 public static T DIVMOD_EX <T>(this ref T value_MODResult, in T den) where T : unmanaged, ICustomInteger
Exemplo n.º 8
0
 internal static void Append <TResult, TParser>(this ref TParser parser, ReadOnlySequence <byte> input, out SequencePosition consumed)
Exemplo n.º 9
0
 public static UnityEngine.Vector3 GetRandomInSphere(this ref RandomState randomState,
Exemplo n.º 10
0
 /// <summary>
 /// Consumes a tag-delimited field.
 /// </summary>
 private static void FormatTagDelimitedField <TInput>(this ref Reader <TInput> reader, StringBuilder res, int indentation)
Exemplo n.º 11
0
 public static T PartialWrite <T>(this ref T target, T source, int shift, int limit) where T : struct => target = Bit <T> .PartialWrite(target, source, shift, limit);
Exemplo n.º 12
0
 public static T Not <T>(this ref T target) where T : struct => target = Bit.Not(target);
Exemplo n.º 13
0
 public static TryInterpretReturnValue TryParseVoiceStructMultiThread(this ref TextFile file, ref VoiceParserTempData tempData, ref ASTTypePageIndexPairListLinkedList astValueTypePairList, Span name, Span parentName, Caret nextToLeftBrace, out Caret nextToRightBrace, Unity.Collections.Allocator allocator)
Exemplo n.º 14
0
 // Member
 /// <summary>SkyrimSE.exe + 0x632180 (VID 37817)</summary>
 static public void Apply <TSpellItem, TActor1, TActor2>(this ref TSpellItem spell, TActor1 *caster, TActor2 *target)
Exemplo n.º 15
0
 /// <summary>
 /// 手駒にpcをc枚加える
 /// </summary>
 /// <param name=""></param>
 /// <param name=""></param>
 /// <param name="pr"></param>
 /// <param name="c"></param>
 public static void Add(this ref Hand hand, Piece pr, int c = 1)
 internal static ushort GetNearSegment(this ref NetSegment segment, ushort nodeId) =>
Exemplo n.º 17
0
 /// <summary>
 /// Applies the <paramref name="args"/>, returning a filtered argument list.
 /// </summary>
 /// <param name="level"></param>
 /// <param name="args">The command-line arguments</param>
 /// <returns>A filtered list of command-line arguments</returns>
 public static string[] ApplyFlags(this ref LogLevel level, string[] args)
Exemplo n.º 18
0
            // Virtual
            static public System.String GetFullName <TTESFullName>(this ref TTESFullName fullName)
                where TTESFullName : unmanaged, Eggstensions.ITESFullName
            {
                var getFullName = (delegate * unmanaged[Cdecl] < TTESFullName *, System.IntPtr >)fullName.VirtualFunction(0x5);

                return(Memory.ReadString(GetFullName(fullName.AsPointer())));
Exemplo n.º 19
0
 /// <summary>
 /// Makes this <paramref name="vector"/> have a magnitude of 1.
 /// </summary>
 /// <param name="vector">The vector to scale.</param>
 /// <param name="length">The length of the original vector.</param>
 public static void Normalize(this ref Vector4 vector, out float length)
 /// <summary>
 /// Initializes an input <see cref="IWICStream"/> wrapping a given <see cref="IBufferWriter{T}"/> instance.
 /// </summary>
 /// <param name="stream">The target <see cref="IWICStream"/> object to initialize.</param>
 /// <param name="destination">The input <see cref="IBufferWriter{T}"/> instance to wrap.</param>
 /// <returns>An <see cref="HRESULT"/> value indicating the operation result.</returns>
 public static HRESULT InitializeFromBufferWriter(this ref IWICStream stream, IBufferWriter <byte> destination)
Exemplo n.º 21
0
 public static ref TField GetFieldRef <T, TField>(this ref T instance, string name) where T : struct
Exemplo n.º 22
0
 // Virtual
 /// <summary>SkyrimSE.exe + 0x54C5F0 (VID 33626)</summary>
 /// <param name="noHitEffectArt">SkyrimSE.exe + 0x551980 (VID 33683)</param>
 /// <param name="effectiveness">SkyrimSE.exe + 0x540360 (VID 33320)</param>
 /// <param name="hostileEffectivenessOnly">SkyrimSE.exe + 0x53DEB0 (VID 33277)</param>
 /// <param name="magnitudeOverride">SkyrimSE.exe + 0x54C5F0 (VID 33626)</param>
 static public void Cast <TMagicCaster, TSpellItem, TActor1, TActor2>(this ref TMagicCaster magicCaster, TSpellItem *spell, System.Boolean noHitEffectArt, TActor1 *target, System.Single effectiveness, System.Boolean hostileEffectivenessOnly, System.Single magnitudeOverride, TActor2 *cause)
Exemplo n.º 23
0
        public static void SetBit(this ref byte b, int bitNumber)
        {
            byte mask = (byte)(1 << (7 - bitNumber));

            b = b |= mask;
        }
Exemplo n.º 24
0
 public static void Velocity_ApplyImpulse(this ref Vector2 target, Vector2 impulse)
Exemplo n.º 25
0
 /// <summary>
 /// Consumes an unknown field.
 /// </summary>
 public static void ConsumeUnknownField <TInput>(this ref Reader <TInput> reader, Field field)
 public static void WriteVarULong(this ref SpanBufferWriter bufferWriter, ulong value)
 public static bool ScanCurrentPixelLineInto(this ref PolygonScanner scanner, int minX, float xOffset, Span <float> scanline)
Exemplo n.º 28
0
 private static @string Error(this ref errorString e)
 {
     return(e.s);
 }
Exemplo n.º 29
0
 public static void Scale(this ref Vertex v, float64 f)
Exemplo n.º 30
0
	static void Foo (ref ref ulong u)
	{
	}
Exemplo n.º 31
0
 /// <summary>
 /// Writes a <see cref="Guid"/> as UUID (RFC #4122).
 /// <para />
 /// <see cref="Guid"/> uses a mixed-endian format which differs from UUID,
 /// see https://en.wikipedia.org/wiki/Universally_unique_identifier#Encoding.
 /// </summary>
 /// <param name="writer">Writer.</param>
 /// <param name="guid">Guid.</param>
 public static void Write(this ref MessagePackWriter writer, Guid guid)