common

package
v0.0.0-...-43d74b8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package common provides common utilities used by syso tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryWriteTo

func BinaryWriteTo(w io.Writer, v interface{}) (int64, error)

BinaryWriteTo writes v to w in little endian format.

func FormatVersionString

func FormatVersionString(v uint64) string

FormatVersionString formats version number in form of "Major.Minor.Patch.Build".

func ParseVersionString

func ParseVersionString(s string) (uint64, error)

ParseVersionString parses version string in form of "Major.Minor.Patch.Build" to number.

func WritePaddingTo

func WritePaddingTo(w io.Writer, n int) (int64, error)

WritePaddingTo writes n zero bytes to w.

Types

type Blob

type Blob interface {
	io.Reader
	Size() int64
}

Blob represents arbitrary data that can be embedded in an object file.

func NewBlob

func NewBlob(r io.Reader) (Blob, error)

NewBlob creates a blob from r by reading all data from it.

Jump to

Keyboard shortcuts

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