Documentation
¶
Index ¶
- func GetFileLength(file *os.File) int64
- func ParsePascalString(file *os.File) string
- func ParseUnicodeString(file *os.File) string
- func ReadBytesLong(file *os.File) uint32
- func ReadBytesLongLong(file *os.File) uint64
- func ReadBytesNInt(file *os.File, length uint32) []byte
- func ReadBytesShort(file *os.File) uint16
- func ReadBytesString(file *os.File, length int) string
- func ReadDouble(file *os.File) (float64, error)
- func ReadFloat(file *os.File) float32
- func ReadIntoArray16(file *os.File, length uint32) []uint16
- func ReadIntoArray8(file *os.File, length uint32) []uint8
- func ReadRawBytes(file *os.File, length int) []byte
- func ReadSingleByte(file *os.File) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileLength ¶
GetFileLength gets the full size in bytes of the file given
func ParsePascalString ¶
ParsePascalString parses a pascal string directly from file
func ParseUnicodeString ¶
ParseUnicodeString parses a unicode string from the photoshop file into a string
func ReadBytesLong ¶
ReadBytesLong reads 4 bytes into a new buffer and returns the result as a uint32
func ReadBytesLongLong ¶
ReadBytesLongLong reads 8 bytes into a new buffer and returns the result as a uint64
func ReadBytesNInt ¶
ReadBytesNInt reads length bytes into a new buffer and returns the result as a []byte
func ReadBytesShort ¶
ReadBytesShort reads 2 bytes into a new buffer and returns the result as an uint16
func ReadBytesString ¶
ReadBytesString reads length number of bytes into a new buffer and returns the result as a string
func ReadIntoArray16 ¶
ReadIntoArray16 takes a []byte and creates a new slice containing the values in uint16 form
func ReadIntoArray8 ¶
ReadIntoArray8 takes a []byte and creates a new slice containing the values in uint8 form
func ReadRawBytes ¶
ReadRawBytes returns a buffer containing length bytes at the current file pointer index
func ReadSingleByte ¶
ReadSingleByte reads 1 bytes into a new buffer and returns the result as an uint16
Types ¶
This section is empty.