bcel

package module
v0.0.0-...-3b2ffe3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

README

bcel

Install

go get github.com/DongHuangT1/bcel

Usage

package main

import (
    "github.com/DongHuangT1/bcel"
)

func main() {
    buf := []byte("...")

    str, err := bcel.Encode(buf, true)
    if err != nil {
        panic(err)
    }

    fmt.Printf("%s\n", str)

    ret, err := bcel.Decode(str, true)
    if err != nil {
        panic(err)
    }

    fmt.Printf("%s\n", ret)
}

Reference

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CHAR_MAP    = make([]int, 48)
	MAP_CHAR    = make([]int, 256)
	BCEL_TOKEN  = "$$BCEL$$"
	ESCAPE_CHAR = byte('$')
)

Functions

func Decode

func Decode(s string, uncompress bool) ([]byte, error)

func Encode

func Encode(b []byte, compress bool) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL