file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/py2sl/mod.rs
Rust
use pyo3::exceptions::PyValueError; use pyo3::prelude::*; use pyo3::types::{PyDict, PyList, PyTuple}; use starlark::values::dict::AllocDict; use starlark::values::list::AllocList; use starlark::values::tuple::AllocTuple; use starlark::values::{FrozenHeap, FrozenValue, Heap, Value}; mod slpyobject; pub(crate) use slpyo...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/py2sl/slpyobject.rs
Rust
use core::cmp::Ordering; use std::hash::Hasher; use allocative::Allocative; use pyo3::exceptions::PyRuntimeError; use pyo3::prelude::*; use pyo3::types::PyDict; use pyo3::types::PyTuple; use starlark::any::ProvidesStaticType; use starlark::collections::StarlarkHasher; use starlark::eval::{Arguments, Evaluator}; use st...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/repr_utils.rs
Rust
use std::fmt::Display; use starlark::syntax::DialectTypes; #[derive(Clone, Copy)] pub(crate) struct PyReprBool(pub bool); impl Display for PyReprBool { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if self.0 { write!(f, "True") } else { write!(f, "Fa...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/sl2py/mod.rs
Rust
use num_bigint::BigInt; use pyo3::prelude::*; use pyo3::types::{PyDict, PyList, PyTuple}; use starlark::values::dict::{DictRef, FrozenDictRef}; use starlark::values::float::StarlarkFloat; use starlark::values::function::NativeFunction; use starlark::values::list::ListRef; use starlark::values::tuple::{FrozenTupleRef, T...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/sl2py/native_function.rs
Rust
use pyo3::prelude::*; use starlark::values::function::NativeFunction; #[pyclass(module = "xingque", name = "_SlNativeFunction", frozen)] pub(crate) struct PySlNativeFunction(&'static NativeFunction); impl PySlNativeFunction { pub(crate) fn new(value: &NativeFunction) -> Self { // Safety: Rust functions wi...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/syntax.rs
Rust
use std::collections::HashMap; use pyo3::exceptions::{PyRuntimeError, PyValueError}; use pyo3::prelude::*; use starlark::syntax::{AstLoad, AstModule, Dialect, DialectTypes}; use crate::codemap::{PyFileSpan, PySpan}; use crate::repr_utils::{PyReprBool, PyReprDialectTypes}; #[pyclass( module = "xingque", name ...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
src/values.rs
Rust
use std::collections::HashMap; use pyo3::{prelude::*, types::PyTuple}; use starlark::values::{FrozenValue, Heap, Value}; #[pyclass(module = "xingque", name = "FrozenValue", frozen)] pub(crate) struct PyFrozenValue(pub(crate) FrozenValue); impl From<FrozenValue> for PyFrozenValue { fn from(value: FrozenValue) -> ...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
tests/test_codemap.py
Python
import xingque def test_pos(): a = xingque.Pos(233) b = xingque.Pos(233) c = xingque.Pos(234) assert a.get() == 233 assert int(a) == 233 assert a == 233 assert a == b assert a + 1 == c b += 1 assert b == c assert a != 233.0 assert a != "233" assert a != None as...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
tests/test_environment.py
Python
import gc import pytest import xingque def test_globals_empty(): x = xingque.Globals() assert not list(x.names()) assert x.describe() == "" assert x.docstring is None def test_globals_standard(): x = xingque.Globals.standard() assert len(list(x.names())) > 0 assert len(x.describe()) > 0...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
tests/test_smoke.py
Python
import functools import xingque def test_smoke(): text = """ def square(x): return x * x a = 42 b = square(a) b + 1 + int(bool(233)) """ am = xingque.AstModule.parse("test.star", text) g = xingque.Globals.standard() e = xingque.Evaluator() result = e.eval_module(am, g) assert result ==...
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
tests/test_values.py
Python
import xingque def test_empty_heap(): h = xingque.Heap() assert h.allocated_bytes == 0 assert h.peak_allocated_bytes == 0 assert h.available_bytes == 0 s = h.allocated_summary() assert s.summary() == {} assert s.total_allocated_bytes == 0
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
xingque.pyi
Python
from typing import Callable, Iterable, Iterator, Protocol, Self VERSION: str STARLARK_RUST_VERSION: str # starlark::codemap class CodeMap: def __init__(self, filename: str, source: str) -> None: ... # TODO: empty_static def full_span(self) -> Span: ... def file_span(self, span: Span) -> FileSpan: ......
xen0n/xingque
7
✨🐦 Typed Python binding to starlark-rust that proxies your objects
Rust
xen0n
WÁNG Xuěruì
gentoo
android-project/app/build.gradle
Gradle
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY'); def buildAsApplication = !buildAsLibrary if (buildAsApplication) { apply plugin: 'com.android.application' } else { apply plugin: 'com.android.library' } android { compileSdkVersion 31 defaultConfig { if (buildAsApplication) { ...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/com/borealis/demo/DemoActivity.java
Java
package com.borealis.demo; import android.os.Bundle; import org.libsdl.app.BorealisHandler; import org.libsdl.app.PlatformUtils; import org.libsdl.app.SDLActivity; public class DemoActivity extends SDLActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInsta...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/BorealisHandler.java
Java
package org.libsdl.app; import android.app.Activity; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.Window; import android.view.WindowManager; public class BorealisHandler extends Handler { @Override public void handleMessage(Message msg) { super.han...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/HIDDevice.java
Java
package org.libsdl.app; import android.hardware.usb.UsbDevice; interface HIDDevice { public int getId(); public int getVendorId(); public int getProductId(); public String getSerialNumber(); public int getVersion(); public String getManufacturerName(); public String getProductName(); p...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java
Java
package org.libsdl.app; import android.content.Context; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCallback; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattDescriptor; import android.bluetooth.Blue...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java
Java
package org.libsdl.app; import android.app.Activity; import android.app.AlertDialog; import android.app.PendingIntent; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.os.Build; impo...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
Java
package org.libsdl.app; import android.hardware.usb.*; import android.os.Build; import android.util.Log; import java.util.Arrays; class HIDDeviceUSB implements HIDDevice { private static final String TAG = "hidapi"; protected HIDDeviceManager mManager; protected UsbDevice mDevice; protected int mInt...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/PlatformUtils.java
Java
package org.libsdl.app; import android.app.Activity; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.ConnectivityManager; import android.net.Network; import android.net.NetworkCapabilities; import android.net...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/SDL.java
Java
package org.libsdl.app; import android.content.Context; import java.lang.Class; import java.lang.reflect.Method; /** SDL library initialization */ public class SDL { // This function should be called first and sets up the native code // so it can call into the Java classes public static void setupJN...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
Java
package org.libsdl.app; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.UiModeManager; import android.content.ClipboardManager; import android.content.ClipData; import android.content.Context; import android.content.DialogInterface; import android.content.Inte...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java
Java
package org.libsdl.app; import android.content.Context; import android.media.AudioDeviceCallback; import android.media.AudioDeviceInfo; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioRecord; import android.media.AudioTrack; import android.media.MediaRecorder; import andr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java
Java
package org.libsdl.app; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import android.content.Context; import android.os.Build; import android.os.VibrationEffect; import android.os.Vibrator; import android.util.Log; import android.view.InputDevice; import...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/app/src/main/java/org/libsdl/app/SDLSurface.java
Java
package org.libsdl.app; import android.content.Context; import android.content.pm.ActivityInfo; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Build; import android.util.DisplayMetrics; import a...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/build.gradle
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() } dependencies { classpath 'com.android.tools.build:gradle:7.0.3' // NOTE: Do not place your application dependencies her...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
android-project/settings.gradle
Gradle
include ':app'
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
build_libromfs_generator.sh
Shell
set -e # ======== 手动构建 libromfs-generator ======== # 本项目支持使用 libromfs 将主程序和资源文件打包在一起,避免额外的文件依赖 # libromfs-generator 的作用是将资源文件转换为 cpp 源码,并在后续的编译过程中链接进主程序 # 在跨平台编译时,有两种解决方案: # 1. 提前编译host机器格式的 libromfs-generator # 2. 设置 CMAKE_CROSSCOMPILING_EMULATOR 以在 host 模拟运行 libromfs-generator # 此脚本即用来生成 host机器格式的 libromfs-generato...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/activity/main_activity.hpp
C++ Header
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/tab/components_tab.hpp
C++ Header
/* Copyright 2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/tab/recycling_list_tab.hpp
C++ Header
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/tab/settings_tab.hpp
C++ Header
/* Copyright 2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/tab/text_test_tab.hpp
C++ Header
/* Copyright 2024 xfangfang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/tab/transform_tab.hpp
C++ Header
/* Copyright 2024 xfangfang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/view/captioned_image.hpp
C++ Header
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/include/view/pokemon_view.hpp
C++ Header
/* Copyright 2021 XITRIX Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/activity/main_activity.cpp
C++
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/main.cpp
C++
/* Copyright 2020-2021 natinusala Copyright 2019 p-sam Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/tab/components_tab.cpp
C++
/* Copyright 2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/tab/recycling_list_tab.cpp
C++
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/tab/settings_tab.cpp
C++
/* Copyright 2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/tab/text_test_tab.cpp
C++
/* Copyright 2024 xfangfang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/tab/transform_tab.cpp
C++
/* Copyright 2024 xfangfang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/view/captioned_image.cpp
C++
/* Copyright 2020-2021 natinusala Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
demo/src/view/pokemon_view.cpp
C++
/* Copyright 2021 XITRIX Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
xfangfang/borealis_template
3
Template project for borealis
Java
xfangfang
example/demo.c
C
#include "demo.h" #include <stdio.h> #include <string.h> #include <math.h> #include "nanovg.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #ifdef _MSC_VER #define snprintf _snprintf #elif !defined(__MINGW32__) #include <iconv.h> #endif #define ICON_SEARCH 0x1F50D #define ICON_CIRCLED_CROSS 0x...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/demo.h
C/C++ Header
#ifndef DEMO_H #define DEMO_H #include "nanovg.h" #ifdef __cplusplus extern "C" { #endif struct DemoData { int fontNormal, fontBold, fontIcons, fontEmoji; int images[12]; }; typedef struct DemoData DemoData; int loadDemoData(NVGcontext* vg, DemoData* data); void freeDemoData(NVGcontext* vg, DemoData* data); void ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_fbo.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gl2.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gl3.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gles2.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gles3.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gxm.c
C
// // Copyright (c) 2024 xfangfang xfangfang@126.com // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // inc...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/example_gxm_fbo.c
C
// // Copyright (c) 2024 xfangfang xfangfang@126.com // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // inc...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/perf.c
C
#include "perf.h" #include <stdio.h> #include <string.h> #include <math.h> #include "nanovg.h" #ifdef _MSC_VER #define snprintf _snprintf #elif !defined(__MINGW32__) #include <iconv.h> #endif void initGraph(PerfGraph* fps, int style, const char* name) { memset(fps, 0, sizeof(PerfGraph)); fps->style = style; strncp...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/perf.h
C/C++ Header
#ifndef PERF_H #define PERF_H #include "nanovg.h" #ifdef __cplusplus extern "C" { #endif enum GraphrenderStyle { GRAPH_RENDER_FPS, GRAPH_RENDER_MS, GRAPH_RENDER_PERCENT, }; #define GRAPH_HISTORY_COUNT 100 struct PerfGraph { int style; char name[32]; float values[GRAPH_HISTORY_COUNT]; int head; }; ty...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
example/stb_image_write.h
C/C++ Header
/* stbiw-0.92 - public domain - http://nothings.org/stb/stb_image_write.h writes out PNG/BMP/TGA images to C stdio - Sean Barrett 2010 no warranty implied; use at your own risk Before including, #define STB_IMAGE_WRITE_IMPLEMENTATION in the file that you want to have the ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
obsolete/nanovg_gl2.h
C/C++ Header
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
obsolete/nanovg_gl3.h
C/C++ Header
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
premake4.lua
Lua
local action = _ACTION or "" solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_US...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/fontstash.h
C/C++ Header
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg.c
C
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg.h
C/C++ Header
// // Copyright (c) 2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg_gl.h
C/C++ Header
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg_gl_utils.h
C/C++ Header
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg_gxm.h
C/C++ Header
// // Copyright (c) 2024 xfangfang xfangfang@126.com // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // inc...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/nanovg_gxm_utils.h
C/C++ Header
// // Copyright (c) 2024 xfangfang xfangfang@126.com // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // inc...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/stb_dxt.h
C/C++ Header
// stb_dxt.h - v1.12 - DXT1/DXT5 compressor - public domain // original by fabian "ryg" giesen - ported to C by stb // use '#define STB_DXT_IMPLEMENTATION' before including to create the implementation // // USAGE: // call stb_compress_dxt_block() for every block (you must pad) // source should be a 4x4 block of ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/stb_image.h
C/C++ Header
/* stb_image - v2.10 - public domain image loader - http://nothings.org/stb_image.h no warranty implied; use at your own risk Do this: #define STB_IMAGE_IMPLEMENTATION before you include this file in *one* C or C++ file to create the implementation. // i.e. it shoul...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
src/stb_truetype.h
C/C++ Header
// stb_truetype.h - v1.24 - public domain // authored from 2009-2020 by Sean Barrett / RAD Game Tools // // ======================================================================= // // NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES // // This library does no range checking of the offsets found in ...
xfangfang/nanovg-gxm
7
A port of NanoVG to the gxm graphics API for the PSVita (vitasdk)
C
xfangfang
Android_Project/ProxySDK/build.gradle
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.0.1' // NOTE: Do not place your application dependencies her...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/build.gradle
Gradle
apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "cn.crossnat.proxydemo" minSdkVersion 17 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitR...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/androidTest/java/cn/crossnat/proxydemo/ExampleInstrumentedTest.java
Java
package cn.crossnat.proxydemo; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android d...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/main/java/cn/crossnat/proxydemo/ActivityAddBinder.java
Java
package cn.crossnat.proxydemo; import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.Button; import android.widget.EditText; import a...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/main/java/cn/crossnat/proxydemo/ActivityBinder.java
Java
package cn.crossnat.proxydemo; import android.content.DialogInterface; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.u...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/main/java/cn/crossnat/proxydemo/MainActivity.java
Java
package cn.crossnat.proxydemo; import android.content.Intent; import android.content.res.Configuration; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.wi...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/main/java/cn/crossnat/proxydemo/NoticeCenter.java
Java
package cn.crossnat.proxydemo; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import android.os.Handler; public class NoticeCenter { public static interface NoticeDelegate { /** * 监听者收到特点广播后回调 * * @param noticeName * ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxydemo/src/test/java/cn/crossnat/proxydemo/ExampleUnitTest.java
Java
package cn.crossnat.proxydemo; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxysdk/build.gradle
Gradle
apply plugin: 'com.android.library' android { compileSdkVersion 28 defaultConfig { minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxysdk/src/main/cpp/native-lib.cpp
C++
#include <jni.h> #include <string> #include "Util/logger.h" #include "Util/MD5.h" #include "Util/onceToken.h" #include "Proxy/Proxy.h" using namespace std; using namespace toolkit; #define JNI_API(retType,funName,...) extern "C" JNIEXPORT retType Java_cn_crossnat_proxysdk_ProxySDK_##funName(JNIEnv* env, jclass cls, ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/proxysdk/src/main/java/cn/crossnat/proxysdk/ProxySDK.java
Java
package cn.crossnat.proxysdk; import java.util.Map; public class ProxySDK { public static final int CODE_SUCCESS = 0; public static final int CODE_OTHER = -1; public static final int CODE_TIMEOUT = -2; public static final int CODE_AUTHFAILED = -3; public static final int CODE_UNSUPPORT = -4; p...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
Android_Project/ProxySDK/settings.gradle
Gradle
include ':proxydemo' ,':proxysdk'
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxySDK/ProxySDK/ProxySDK.h
C/C++ Header
#import <Foundation/Foundation.h> #if defined(__cplusplus) #define FOUNDATION_EXTERN extern "C" #else #define FOUNDATION_EXTERN extern #endif typedef enum : NSInteger{ CODE_SUCCESS = 0, CODE_OTHER = -1, CODE_TIMEOUT = -2, CODE_AUTHFAILED = -3, CODE_UNSUPPORT = -4, CODE_NOTFOUND = -5, CODE_...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxySDK/ProxySDK/ProxySDK.mm
Objective-C++
#import "ProxySDK.h" #import "Proxy.h" #import "Util/onceToken.h" #import "Util/logger.h" using namespace toolkit; NSString * const kProxyEventLoginResult = @"kProxyEventLoginResult"; NSString * const kProxyEventShutdown = @"kProxyEventShutdown"; NSString * const kProxyEventBinded = @"kProxyEventBinded"; N...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/AppDelegate.h
C/C++ Header
// // AppDelegate.h // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/AppDelegate.mm
Objective-C++
// // AppDelegate.m // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import "AppDelegate.h" #import "Proxy.h" @interface AppDelegate () @end @implementation AppDelegate { UIBackgroundTaskIdentifier bgTask; } - (BOOL)application:(UIApplication *)applicatio...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/Common.h
C/C++ Header
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface Common : NSObject + (void)shakeAnimationForView:(UIView *) view; @end
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/Common.m
Objective-C
#import "Common.h" @implementation Common + (void)shakeAnimationForView:(UIView *) view { // 获取到当前的View CALayer *viewLayer = view.layer; // 获取当前View的位置 CGPoint position = viewLayer.position; // 移动的两个终点位置 CGPoint x = CGPointMake(position.x + 10, position.y); ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/NSString+Valid.h
C/C++ Header
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NSString (Valid) -(NSString *)fileFullPath; -(BOOL)isChinese; -(NSInteger)find:(NSString *)substr; +(NSString *) fromInt:(NSInteger) val; +(NSString *) fromFloat:(float) val; +(NSString *) fromDouble:(double) val; +(NSString *)getDataSizeString:(int)...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/NSString+Valid.m
Objective-C
#import "NSString+Valid.h" #import <CommonCrypto/CommonDigest.h> @implementation NSString (Valid) -(BOOL)isChinese{ NSString *match=@"(^[\u4e00-\u9fa5]+$)"; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF matches %@", match]; return [predicate evaluateWithObject:self]; } +(NSString *) fro...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/WaitingHUD.h
C/C++ Header
#import <UIKit/UIKit.h> @interface WaitingHUD : UIView { @public __weak IBOutlet UILabel *lb_title; __weak IBOutlet UIImageView *view_progress; __weak IBOutlet UIActivityIndicatorView *loadingView; } @property(nonatomic,copy) NSString *message; @property...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/Tools/WaitingHUD.m
Objective-C
#import "WaitingHUD.h" #import <objc/runtime.h> #import "NSString+Valid.h" static char hudKey; @implementation WaitingHUD { __weak IBOutlet NSLayoutConstraint *con_img_width; __weak IBOutlet NSLayoutConstraint *con_title_top; } -(id)init{ self=[super init]; if (self) { NSArray *arr=[[NSBundle ma...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_addBinder.h
C/C++ Header
// // VC_addBinder.h // ProxyTester // // Created by xzl on 2017/7/12. // Copyright © 2017年 xzl. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^onAddBinder)(NSDictionary *binderInfo); @interface VC_addBinder : UIViewController<UITextFieldDelegate> @property (nonatomic,copy) onAddBinder block; @end
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_addBinder.m
Objective-C
// // VC_addBinder.m // ProxyTester // // Created by xzl on 2017/7/12. // Copyright © 2017年 xzl. All rights reserved. // #import "VC_addBinder.h" #import "Common.h" #import "NSString+Valid.h" #import "ProxySDK.h" #import "WaitingHUD.h" @interface VC_addBinder () @end @implementation VC_addBinder { __weak IB...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_joinRoom.h
C/C++ Header
// // VC_joinRoom.h // ProxyTester // // Created by xzl on 2018/12/3. // Copyright © 2018 xzl. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface VC_joinRoom : UIViewController @end NS_ASSUME_NONNULL_END
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_joinRoom.m
Objective-C
// // VC_joinRoom.m // ProxyTester // // Created by xzl on 2018/12/3. // Copyright © 2018 xzl. All rights reserved. // #import "VC_joinRoom.h" #import "ProxySDK.h" #import "WaitingHUD.h" @interface VC_joinRoom () @end @implementation VC_joinRoom { __weak IBOutlet UITextField *_txt_room; } - (void)viewDidLoa...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_login.h
C/C++ Header
// // ViewController.h // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import <UIKit/UIKit.h> @interface VC_login : UIViewController<UITextFieldDelegate> @end
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_login.m
Objective-C
// // ViewController.m // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import "VC_login.h" #import "NSString+Valid.h" #import "Common.h" #import "ProxySDK.h" #import "WaitingHUD.h" @interface VC_login () @end @implementation VC_login { __weak IBOutlet UIT...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_main.h
C/C++ Header
// // VC_main.h // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import <UIKit/UIKit.h> @interface VC_main : UIViewController @end
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚
IOS_Project/ProxyTester/ProxyTester/VC_main.mm
Objective-C++
// // VC_main.m // ProxyTester // // Created by xzl on 2017/7/11. // Copyright © 2017年 xzl. All rights reserved. // #import "VC_main.h" #import "ProxySDK.h" #import "Proxy.h" @interface VC_main () @end @implementation VC_main { __weak IBOutlet UILabel *lb_speed; __weak IBOutlet UITextView *txt_log; ...
xia-chu/TcpProxy
55
一个tcp代理工具;借助公网服务器中转,可以把NAT内的远端设备的tcp端口映射至localhost,访问localhost映射端口相当于访问远端设备端口。
C
xia-chu
夏楚