MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / BytesMatch

Method BytesMatch

ui/Services/Patching/Patcher.cs:871–877  ·  view source on GitHub ↗
(byte[] data, int dataOffset, byte[] pattern, int patOffset, int length)

Source from the content-addressed store, hash-verified

869 }
870
871 static bool BytesMatch(byte[] data, int dataOffset, byte[] pattern, int patOffset, int length)
872 {
873 if (dataOffset + length > data.Length) return false;
874 for (int i = 0; i < length; i++)
875 if (data[dataOffset + i] != pattern[patOffset + i]) return false;
876 return true;
877 }
878
879 static string SafeHexDump(byte[] data, int offset, int length)
880 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected