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
var ref = require('ref-napi') | |
var ffi = require('ffi-napi') | |
var Struct = require('ref-struct-napi') | |
var ArrayType = require('ref-array-napi') | |
var LongArray = ArrayType(ref.types.longlong) | |
var GoSlice = Struct({ | |
data: LongArray, | |
len: 'longlong', | |
cap: 'longlong' | |
}) |
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
package main | |
import "C" | |
import ( | |
"github.com/sandertv/gophertunnel/minecraft" | |
// "io/ioutil" | |
// "log" | |
// "os" | |
// "encoding/json" |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |
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
static void __init fixrange_init(unsigned long start, unsigned long end, | |
pgd_t *pgd_base) | |
{ | |
pgd_t *pgd; | |
p4d_t *p4d; | |
pud_t *pud; | |
pmd_t *pmd; | |
int i, j; | |
unsigned long vaddr; |