Note this MODIFIES THE GIVEN ARRAY then returns a reference to the modified array.
(this byte[] b)
| 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); |
no outgoing calls
no test coverage detected