This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from construct import * | |
import zlib | |
from array import array | |
import struct | |
import binascii | |
import os | |
import sys | |
u8 = UBInt8 | |
u16 = UBInt16 | |
u32 = UBInt32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <cstdio> | |
#include <cstdint> | |
//"MakeUnique.h" | |
#include "make_unique_impl.h" | |
struct Base { | |
Base() | |
: a(0), b(1), c(2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Source/Core/Common/Thread.h b/Source/Core/Common/Thread.h | |
index d108359..8e03c6a 100644 | |
--- a/Source/Core/Common/Thread.h | |
+++ b/Source/Core/Common/Thread.h | |
@@ -24,6 +24,8 @@ | |
#include <sys/time.h> | |
#endif | |
+#include <concrt.h> | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <winsock2.h> | |
#include <iphlpapi.h> | |
#include <cstdio> | |
#include <memory> | |
#pragma comment(lib, "iphlpapi.lib") | |
#pragma comment(lib, "ws2_32.lib") | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> // for memset | |
// T : type | |
// F : offset in bits | |
// S : size in bits | |
template <typename T, int F, int S> | |
class BF | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This plugin is aware of Macronix-specific sflash behavior, such that it may | |
// fully decode bus transactions. | |
// latches input on SCLK rising edge, shifts data out on falling edge of SCLK | |
// CS active low | |
// supports 4 byte addresses | |
// supports up to 4-wire parallel IO | |
#include "../Cmdparser.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
example of consuming insns.xml | |
''' | |
from xml.etree.ElementTree import ElementTree | |
class Instructions: | |
def __init__(s): | |
s.root = ElementTree(file = 'insns.xml') | |
def dump(s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
00000000 | |
00000000 iov struc ; (sizeof=0x8, mappedto_25) | |
00000000 ptr DCD ? | |
00000004 len DCD ? | |
00000008 iov ends | |
00000008 | |
00000000 ; --------------------------------------------------------------------------- | |
00000000 | |
00000000 so_hints struc ; (sizeof=0x20, mappedto_27) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __fastcall so_set_fd_entry(sock_fd_node *node, int fd) | |
{ | |
int proto; // r5@3 | |
unsigned __int8 *v5; // r7@3 | |
int v6; // r8@3 | |
__int16 v7; // r2@3 | |
int v9; // r4@15 | |
int v10; // r3@15 | |
int v11; // [sp+14h] [bp-4h]@0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a: d0200: d02f7 b'00f0d0f910bd00000fb401f07bf80fbc04460068b7f786bf0fb401f0e2f9012803d10fbc4ff0010070bd0fbc04464ff6ff754df7dfbd0000384629460daa01f005fa94f76fff01f065fa92f78cff000001f010fcfebd044601f098fc70bd01f0aefcbde8f08101f0e8fc70bd02f095faf8bdbde8fc4702f0f3bb000002f06efc10bd000002f096fc70bd0000f0bc02f0fbbe000002f0beffbde8f88f03f0e2f8bde8f08107b0bde8f04f03f054babde8f04103f0b5bcbde8f04103f036bdbde8f04103f0bcbd000003f0b6fffebd0000bde8f04104f07cb9069dd9f755fa3a4600214046d9f750fac4f800806660d5f7d2bc2046d5f777' | |
0a: d02f7: d03ee b'fd6ff30b00216ad5f797bd0a600021816110bd000004f04dfca84200d2054654f7c3be0000bde87c4005f07cb84021b9f1010f02d1c7f14000c1b265f78cfb000000b54bf753fc05f08ff94bf75bbc00b54bf74cfc05f093f94bf754bc00b54bf745fc05f097f94bf74dbceff305803028e6d03128ebd03228f0d00ef00f00012802d1eff3088001e0eff3098021462a46334654f7fdf900b54bf726fcfee7000001d565f797f843f7e4f805f07ff965f718fa05f094f967f763ff65f771f9000005f0b4b905f0e8f91cbd000005f0c8fa30bd000005f023fbbde8fc9f05f0b3fb10bd05f0bdfb10bd05f05aff70bd05 |
OlderNewer