Skip to content

Commit

Permalink
Merge pull request #221 from observerly/feature/metadata/DataType
Browse files Browse the repository at this point in the history
feat: add DataType to metadata module in @observerly/iris
  • Loading branch information
michealroberts authored Oct 17, 2024
2 parents ed82155 + ffd80d4 commit 6c7d20a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkg/ifd/datatype.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*****************************************************************************************************************/

// @author Michael Roberts <[email protected]>
// @package @observerly/iris/metadata
// @license Copyright © 2021-2024 observerly

/*****************************************************************************************************************/

package metadata

/*****************************************************************************************************************/

type DataType uint16

/*****************************************************************************************************************/

const (
DataTypeNil DataType = 0 // placeholder, invalid
DataTypeByte DataType = 1 // 8-bit unsigned integer
DataTypeASCII DataType = 2 // 8-bit bytes w/ last byte null
DataTypeShort DataType = 3 // 16-bit unsigned integer
DataTypeLong DataType = 4 // 32-bit unsigned integer
DataTypeRational DataType = 5 // 64-bit unsigned fraction
DataTypeSByte DataType = 6 // !8-bit signed integer
DataTypeUndefined DataType = 7 // !8-bit untyped data
DataTypeSShort DataType = 8 // !16-bit signed integer
DataTypeSLong DataType = 9 // !32-bit signed integer
DataTypeSRational DataType = 10 // !64-bit signed fraction
DataTypeFloat DataType = 11 // !32-bit IEEE floating point
DataTypeDouble DataType = 12 // !64-bit IEEE floating point
DataTypeIFD DataType = 13 // %32-bit unsigned integer (offset)
DataTypeLong8 DataType = 16 // BigTIFF 64-bit unsigned integer
DataTypeSLong8 DataType = 17 // BigTIFF 64-bit signed integer
DataTypeIFD8 DataType = 18 // BigTIFF 64-bit unsigned integer (offset)
)

/*****************************************************************************************************************/

0 comments on commit 6c7d20a

Please sign in to comment.