Documentation ¶
Index ¶
- Constants
- Variables
- type Array
- type Bool
- type CodePageID
- type CodeString
- type Currency
- type Date
- type Decimal
- type FileTime
- type Guid
- type I1
- type I2
- type I4
- type I8
- type MakeType
- type Null
- type R4
- type R8
- type Type
- func Evaluate(b []byte) (Type, error)
- func MakeArray(f MakeType, b []byte) (Type, error)
- func MakeBool(b []byte) (Type, error)
- func MakeCodeString(b []byte) (Type, error)
- func MakeCurrency(b []byte) (Type, error)
- func MakeDate(b []byte) (Type, error)
- func MakeDecimal(b []byte) (Type, error)
- func MakeFileTime(b []byte) (Type, error)
- func MakeGuid(b []byte) (Type, error)
- func MakeI1(b []byte) (Type, error)
- func MakeI2(b []byte) (Type, error)
- func MakeI4(b []byte) (Type, error)
- func MakeI8(b []byte) (Type, error)
- func MakeR4(b []byte) (Type, error)
- func MakeR8(b []byte) (Type, error)
- func MakeUI1(b []byte) (Type, error)
- func MakeUI2(b []byte) (Type, error)
- func MakeUI4(b []byte) (Type, error)
- func MakeUI8(b []byte) (Type, error)
- func MakeUnicode(b []byte) (Type, error)
- func MakeVariant(b []byte) (Type, error)
- func MakeVector(f MakeType, b []byte) (Type, error)
- type TypeID
- type UI1
- type UI2
- type UI4
- type UI8
- type UnicodeString
- type Variant
- type Vector
Constants ¶
View Source
const ( VT_EMPTY TypeID = iota // 0x00 VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE VT_BSTR VT_ERROR VT_BOOL VT_VARIANT VT_DECIMAL VT_I1 VT_U1 VT_UI2 VT_UI4 VT_I8 VT_UI8 VT_INT VT_UINT //0x17 VT_LPSTR //0x1E VT_LPWSTR VT_FILETIME = iota + 0x25 // 0x40 VT_BLOB VT_STREAM VT_STORAGE VT_STREAMED_OBJECT VT_STORED_OBJECT VT_BLOB_OBJECT VT_CF VT_CLSID VT_VERSIONED_STREAM // 0x49 )
Variables ¶
View Source
var ( ErrType = errors.New("msoleps: error coercing byte stream to type") ErrUnknownType = errors.New("msoleps: unknown type error") )
View Source
var CodePageIDs map[CodePageID]string = map[CodePageID]string{}/* 152 elements not displayed */
View Source
var MakeTypes map[TypeID]MakeType = map[TypeID]MakeType{ VT_I2: MakeI2, VT_I4: MakeI4, VT_R4: MakeR4, VT_R8: MakeR8, VT_CY: MakeCurrency, VT_DATE: MakeDate, VT_BSTR: MakeCodeString, VT_BOOL: MakeBool, VT_DECIMAL: MakeDecimal, VT_I1: MakeI1, VT_U1: MakeUI1, VT_UI2: MakeUI2, VT_UI4: MakeUI4, VT_I8: MakeI8, VT_UI8: MakeUI8, VT_INT: MakeI4, VT_UINT: MakeUI4, VT_LPSTR: MakeCodeString, VT_LPWSTR: MakeUnicode, VT_FILETIME: MakeFileTime, VT_CLSID: MakeGuid, }
Functions ¶
This section is empty.
Types ¶
type CodePageID ¶
type CodePageID uint16
type CodeString ¶
type CodeString struct { Chars []byte // contains filtered or unexported fields }
func (*CodeString) Encoding ¶
func (s *CodeString) Encoding() string
func (*CodeString) Length ¶
func (s *CodeString) Length() int
func (*CodeString) SetId ¶
func (s *CodeString) SetId(i CodePageID)
func (*CodeString) String ¶
func (s *CodeString) String() string
func (*CodeString) Type ¶
func (s *CodeString) Type() string
type FileTime ¶
type FileTime struct { Low uint32 // Windows FILETIME structure High uint32 // Windows FILETIME structure }
Win FILETIME type http://msdn.microsoft.com/en-us/library/cc230324.aspx
func MustFileTime ¶
type Guid ¶
Win GUID and UUID type http://msdn.microsoft.com/en-us/library/cc230326.aspx
func GuidFromName ¶
func GuidFromString ¶
func MustGuidFromString ¶
type Type ¶
func MakeCodeString ¶
func MakeCurrency ¶
func MakeDecimal ¶
func MakeFileTime ¶
func MakeUnicode ¶
func MakeVariant ¶
type UnicodeString ¶
type UnicodeString []uint16
func (UnicodeString) Length ¶
func (s UnicodeString) Length() int
func (UnicodeString) String ¶
func (s UnicodeString) String() string
func (UnicodeString) Type ¶
func (s UnicodeString) Type() string
Click to show internal directories.
Click to hide internal directories.