Giter Club home page Giter Club logo

zz_urlencoder's Introduction

zz_urlencoder

application/x-www-form-urlencoded encoder FFI for C and Eyuyan

Windows动态链接库,已静态链接C运行库,可供C语言和易语言调用。

需使用Rust 1.15 nightly或以上版本编译:cargo build --release

/// 对input文本执行`application/x-www-form-urlencoded`编码,结果写入buf缓冲区
///
/// 参数input为UTF-8格式的文本数据地址,inputlen是其字节数
/// 参数buf为结果缓冲区,buflen是其字节数
///
/// 如果缓冲区长度不足以存放编码结果文本,将返回实际所需缓冲区字节数的负值,保持缓冲区内容不变
/// 如果缓冲区长度足够,将向其写入编码结果文本和结尾'\0'字符,并返回写入的字节数(正值)
/// 
/// by Liigo, 20170207.
#[no_mangle]
pub extern fn form_urlencode(input: i32, inputlen: i32, buf: i32, buflen: i32) -> i32;

zz_urlencoder's People

Contributors

liigo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.