dataType

package
v1.1.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright [2018] [jc3wish]

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 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitBytesToInt64

func BitBytesToInt64(bb []byte) (n int64)

func BytesToFloat32

func BytesToFloat32(b []byte) (n float32)

func BytesToFloat64

func BytesToFloat64(b []byte) float64

func BytesToInt16

func BytesToInt16(b []byte) (n int16)

func BytesToInt32

func BytesToInt32(b []byte) (n int32)

func BytesToInt64

func BytesToInt64(b []byte) (n int64)

func BytesToInt8

func BytesToInt8(b []byte) (n int8)

func BytesToUInt16

func BytesToUInt16(b []byte) (n uint16)

func BytesToUInt32

func BytesToUInt32(b []byte) (n uint32)

func BytesToUInt64

func BytesToUInt64(b []byte) (n uint64)

func BytesToUInt8

func BytesToUInt8(b []byte) (n uint8)

func TransferDataType

func TransferDataType(data []byte, dataType Type) (v interface{}, err error)

Types

type Type

type Type int8
const (
	BOOL_TYPE Type = iota + 1
	INT8_TYPE
	UINT8_TYPE
	INT16_TYPE
	UINT16_TYPE
	INT32_TYPE
	UINT32_TYPE
	INT64_TYPE
	UINT64_TYPE
	STRING_TYPE
	BYTE_TYPE
	BYTES_TYPE
	FLOAT32_TYPE
	FLOAT64_TYPE
	BIT_TYPE
)

Jump to

Keyboard shortcuts

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