二重引用符(ダブルクォート "
)と引用符(クォート '
)はどちらも文字列のリテラルを表すのに利用できます。これらの違いを説明します。
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
def gf_mul(a, b): | |
result = 0 | |
while b: | |
if b & 1: | |
result ^= a | |
a <<= 1 | |
if a & 0x100: | |
a ^= 0x11b | |
b >>= 1 | |
return result |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Action<T>の関数ポインターにブレークポイントを張りたい... | |
Il2CppDumperをかけてみた。 | |
// Namespace: System | |
public sealed class Action`1 : MulticastDelegate // TypeDefIndex: 139 | |
{ | |
// Methods | |
public void .ctor(object object, IntPtr method); // RVA: 0x101166128 Offset: 0x1166128 | |
public virtual void Invoke(T obj); // RVA: 0x101166138 Offset: 0x1166138 | |
public virtual IAsyncResult BeginInvoke(T obj, AsyncCallback callback, object object); // RVA: 0x101162F50 Offset: 0x1162F50 |
I hereby claim:
- I am nkoneko on github.
- I am nkoneko (https://keybase.io/nkoneko) on keybase.
- I have a public key ASAhz2IXdewhiiw7odFnh3GOB4PYKUlJh2xQH_YbjTaougo
To claim this, I am signing this object:
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 <unistd.h> | |
#include <sys/types.h> | |
#include <mach/port.h> | |
#include <mach/mach.h> | |
#include <mach/vm_region.h> | |
#include <mach/vm_map.h> | |
#include <chrono> | |
#include <thread> |
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 <iostream> | |
int main() { | |
std::cout << "Hello World!\n"; | |
} |
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 <time.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/event.h> | |
#include <ctype.h> | |
struct ReaderState { | |
int initialized; | |
int isInStr; |
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
function BloomFilter(bitSet, filterSize, numHashes) { | |
if (!!filterSize && !!numHashes) { | |
if (!bitSet) { | |
var numBins = filterSize / 32; | |
this._bitSet = new Array(numBins); | |
var i; | |
for (i = 0; i < numBins; i++) { | |
this._bitSet[i] = 0; | |
} | |
} else { |
NewerOlder