Base: TLS 1.0
Endian: little
| name | offset | size |
|---|---|---|
| random (i32) | 0 | 4 |
| zero padding (i16) | 4 | 2 |
| (function () { | |
| var $ = document.querySelector.bind(document); | |
| var original = document.body.innerHTML; | |
| var outHTML = $('article.markdown-body').outerHTML; | |
| document.body.innerHTML = outHTML; | |
| window.print(); | |
| document.body.innerHTML = original; | |
| })(); |
| #include <stdio.h> | |
| #include <string.h> | |
| long long int setPassword(char *password, int pwdLength) { | |
| if (pwdLength <= 0) return 0xFFFFFFFFLL; | |
| unsigned int result = -1; | |
| unsigned short encryptShifter; | |
| unsigned short encryptedChar; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef unsigned char BYTE; | |
| struct CryptoStateStore { | |
| int first; | |
| int sec; | |
| int last; |
| function toNBTUUID(uuid) { | |
| return `[I;${uuid.replace(/-/g, '').match(/.{8}/g).map(str => Number.parseInt(str, 16)).map(num => num & 0x80000000 ? num - 0xffffffff - 1 : num).join(',')}]`; | |
| } | |
| // toNBTUUID('0e9b65dd-3dce-4a3f-8a13-3299a91ceac7'); | |
| // -> [I;245065181,1036929599,-1978453351,-1457722681] |
| DMCA Takedown Notice | |
| == Copyright owner: Kakao Corp. | |
| == Name: An Chisu | |
| == Company: Kakao Corp. | |
| == Job title: IP Manager | |
| == Email address: trademark@kakaocorp.com | |
| == Address: 7F N, H-Square, 235 | |
| == City: Pangyoyeok-ro, Bundang-gu, Seongnam-si |
| #include <windows.h> | |
| HWND FindMainWindow(DWORD pid) { | |
| HANDLE threadSnap = INVALID_HANDLE_VALUE; | |
| threadSnap = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, pid); | |
| if(threadSnap == INVALID_HANDLE_VALUE) return NULL; | |
| THREADENTRY32 entry = { sizeof(THREADENTRY32) }; | |
| HWND win = NULL; |
| #include <windows.h> | |
| PDWORD getExportRvaAddr(HMODULE mod, LPCSTR funcName) { | |
| UINT_PTR modAddr = (UINT_PTR)mod; | |
| PIMAGE_DOS_HEADER dosHeader = (PIMAGE_DOS_HEADER) mod; | |
| PIMAGE_NT_HEADERS header = (PIMAGE_NT_HEADERS) (modAddr + dosHeader->e_lfanew); | |
| DWORD eatOffset = header->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT].VirtualAddress; | |
| PIMAGE_EXPORT_DIRECTORY exportDir = (PIMAGE_EXPORT_DIRECTORY) (modAddr + eatOffset); |
Rust language is the only compiled language without gc with guaranteed memory safety.
Using new Forget(must drop) marker trait, I propose safe, performant, ergonomic event and fine grained reactivity system that solves these problems.
Which only work in rust due to rust's unique properties.
Forget or Leak trait is a marker trait for types cannot be forgotten (must run destructor).
Rust doesn't have these traits now, but proposed as a solution for scoped task trilemma.
There is a good Forget marker trait RFC. Please read this before proceed.