MCPcopy Create free account
hub / github.com/CCob/BOF.NET / Reverse

Method Reverse

managed/BOFNET/Utils.cs:27–30  ·  view source on GitHub ↗

Note this MODIFIES THE GIVEN ARRAY then returns a reference to the modified array.

(this byte[] b)

Source from the content-addressed store, hash-verified

25
26 // Note this MODIFIES THE GIVEN ARRAY then returns a reference to the modified array.
27 public static byte[] Reverse(this byte[] b) {
28 Array.Reverse(b);
29 return b;
30 }
31
32 public static UInt16 ReadUInt16BE(this BinaryReader binRdr) {
33 return BitConverter.ToUInt16(binRdr.ReadBytes(sizeof(UInt16)).Reverse(), 0);

Callers 4

ReadUInt16BEMethod · 0.80
ReadInt16BEMethod · 0.80
ReadUInt32BEMethod · 0.80
ReadInt32BEMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected