rob

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 1 Imported by: 2

README

go-rob

GoDev

go-rob パッケージは []byte, string 間の低コストな相互キャストを提供します.

Usage

var b []byte = rob.Bytes("string")
var s string = rob.String(b)

License

This software is released under the MIT License, see LICENSE.

Author

17e10

Documentation

Overview

ro パッケージは []byte, string 間の低コストな相互キャストを提供します.

ro パッケージから返された値は Read Only に扱う必要があります. 書き込みを行った場合 access violation が生じる場合があります.

Example (Crash)
s := "hello"
b := rob.Bytes(s)
b[0] = 'H' // crash: DO NOT change
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(s string) []byte

string を []byte に変換します.

func String

func String(b []byte) string

[]byte を string に変換します.

Types

This section is empty.

Jump to

Keyboard shortcuts

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