Documentation ¶
Index ¶
- Variables
- func DecodeInt64(num []byte) int64
- func DecodeUint16(num []byte) uint16
- func DecodeUint32(num []byte) uint32
- func DecodeUint64(num []byte) uint64
- func DecodeUint8(num []byte) uint8
- func FromUnicode(uni []byte) string
- func GetDataValue(nametype string, data []byte) interface{}
- func Headers(hstr string) mail.Header
- func ParseAttachment(msg *mailfile.Message, datas []UnpackData)
- func ParseProps(msg *mailfile.Message, m MetaData)
- func PtypBinary(data []byte) []byte
- func PtypBoolean(data []byte) bool
- func PtypCurrency(data []byte) []byte
- func PtypErrorCode(data []byte) uint32
- func PtypFloating32(data []byte) float32
- func PtypFloating64(data []byte) float64
- func PtypFloatingTime(data []byte) []byte
- func PtypGuid(data []byte) []byte
- func PtypInteger16(data []byte) uint16
- func PtypInteger32(data []byte) uint32
- func PtypInteger64(data []byte) uint64
- func PtypMultipleBinary(data []byte) interface{}
- func PtypMultipleCurrency(data []byte) interface{}
- func PtypMultipleFloating32(data []byte) interface{}
- func PtypMultipleFloating64(data []byte) interface{}
- func PtypMultipleFloatingTime(data []byte) interface{}
- func PtypMultipleGuid(data []byte) interface{}
- func PtypMultipleInteger16(data []byte) interface{}
- func PtypMultipleInteger32(data []byte) interface{}
- func PtypMultipleInteger64(data []byte) interface{}
- func PtypMultipleString(data []byte) interface{}
- func PtypMultipleString8(data []byte) interface{}
- func PtypMultipleTime(data []byte) interface{}
- func PtypNull(data []byte) []byte
- func PtypObject(data []byte) []byte
- func PtypRestriction(data []byte) []byte
- func PtypRuleAction(data []byte) []byte
- func PtypServerId(data []byte) []byte
- func PtypString(data []byte) string
- func PtypString8(data []byte) string
- func PtypTime(data []byte) uint64
- func PtypUnspecified(data []byte) []byte
- func ReadASCIIString(pos int, buff []byte) ([]byte, int)
- func ReadByte(pos int, buff []byte) (byte, int)
- func ReadBytes(pos, count int, buff []byte) ([]byte, int)
- func ReadTypedString(pos int, buff []byte) ([]byte, int)
- func ReadUTF16BE(pos int, buff []byte) ([]byte, int)
- func ReadUint16(pos int, buff []byte) (uint16, int)
- func ReadUint32(pos int, buff []byte) (uint32, int)
- func ReadUint8(pos int, buff []byte) (uint8, int)
- func ReadUnicodeString(pos int, buff []byte) ([]byte, int)
- func Trim(data []byte) []byte
- func UTF16ToUTF8(b []byte) string
- type MetaData
- type Stream
- type UnpackData
Constants ¶
This section is empty.
Variables ¶
var PROPS_ID_MAP = map[string]map[string]string{}/* 543 elements not displayed */
Functions ¶
func DecodeUint16 ¶
DecodeUint16 decode 2 byte value into uint16
func DecodeUint32 ¶
DecodeUint32 decode 4 byte value into uint32
func DecodeUint64 ¶
DecodeUint64 decode 4 byte value into uint32
func FromUnicode ¶
FromUnicode read unicode and convert to byte array
func GetDataValue ¶
func ParseAttachment ¶
func ParseAttachment(msg *mailfile.Message, datas []UnpackData)
func ParseProps ¶
func PtypBinary ¶
variable size; a COUNT field followed by that many bytes
func PtypCurrency ¶
8 bytes; a 64-bit signed, scaled integer representation of a decimal currency value, with four places to the right of the decimal point
func PtypErrorCode ¶
4 bytes; A 32-bit integer encoding error information
func PtypFloating32 ¶
4 bytes; a 32-bit floating point number
func PtypFloating64 ¶
8 bytes; a 64-bit floating point number
func PtypFloatingTime ¶
8 bytes; a 64-bit floating point number
func PtypMultipleBinary ¶
func PtypMultipleBinary(data []byte) interface{}
variable size; a COUNT field followed by that many PtypBinary values
func PtypMultipleCurrency ¶
func PtypMultipleCurrency(data []byte) interface{}
variable size; a COUNT field followed by that many PtypCurrency values
func PtypMultipleFloating32 ¶
func PtypMultipleFloating32(data []byte) interface{}
variable size; a COUNT field followed by that many PtypFloating32 values
func PtypMultipleFloating64 ¶
func PtypMultipleFloating64(data []byte) interface{}
variable size; a COUNT field followed by that many PtypFloating64 values
func PtypMultipleFloatingTime ¶
func PtypMultipleFloatingTime(data []byte) interface{}
variable size; a COUNT field followed by that many PtypFloatingTime values
func PtypMultipleGuid ¶
func PtypMultipleGuid(data []byte) interface{}
variable size; a COUNT field followed by that many PtypGuid values
func PtypMultipleInteger16 ¶
func PtypMultipleInteger16(data []byte) interface{}
variable size; a COUNT field followed by that many PtypInteger16 values
func PtypMultipleInteger32 ¶
func PtypMultipleInteger32(data []byte) interface{}
variable size; a COUNT field followed by that many PtypInteger32 values
func PtypMultipleInteger64 ¶
func PtypMultipleInteger64(data []byte) interface{}
variable size; a COUNT field followed by that many PtypInteger64 values
func PtypMultipleString ¶
func PtypMultipleString(data []byte) interface{}
variable size; a COUNT field followed by that many PtypString values
func PtypMultipleString8 ¶
func PtypMultipleString8(data []byte) interface{}
variable size; a COUNT field followed by that many PtypString8 values
func PtypMultipleTime ¶
func PtypMultipleTime(data []byte) interface{}
variable size; a COUNT field followed by that many PtypTime values
func PtypObject ¶
the property value is a Component Object Model (COM) object
func PtypRestriction ¶
variable size; a byte array representing one or more Restriction structures
func PtypRuleAction ¶
variable size; a 16-bit COUNT field followed by that many rule action structures
func PtypServerId ¶
variable size; a 16-bit COUNT field followed by a structure
func PtypString ¶
variable size; a string of Unicode characters in UTF-16LE format encoding with terminating null character (0x0000).
func PtypString8 ¶
variable size; a string of multibyte characters in externally specified encoding with terminating null character (single 0 byte).
func PtypTime ¶
8 bytes; a 64-bit integer representing the number of 100-nanosecond intervals since January 1, 1601
func PtypUnspecified ¶
this property type value matches any type
func ReadASCIIString ¶
ReadASCIIString returns a string as ascii
func ReadTypedString ¶
ReadTypedString reads a string as either Unicode or ASCII depending on type value
func ReadUTF16BE ¶
ReadUTF16BE reads the unicode string that the outlook rule file uses this basically means there is a length byte that we need to skip over
func ReadUint16 ¶
ReadUint16 read 2 bytes and return as uint16
func ReadUint32 ¶
ReadUint32 read 4 bytes and return as uint32
func ReadUnicodeString ¶
ReadUnicodeString read and return a unicode string
func UTF16ToUTF8 ¶
Types ¶
type Stream ¶
type Stream struct { // unpack UnpackData // contains filtered or unexported fields }
type UnpackData ¶
type UnpackData struct {
// contains filtered or unexported fields
}