Table of Contents

Enum PrimitiveDataType

Namespace
ShapeShift.Schema
Assembly
ShapeShift.dll

Enumerates the scalar data types that ShapeShift knows how to encode natively.

public enum PrimitiveDataType

Fields

BigInteger = 15

A BigInteger, which has no bounds.

Binary = 4

A sequence of bytes.

Boolean = 0

A bool.

Byte = 6

A byte.

Char = 1

A char, encoded as a single-character string.

DateTime = 20

A DateTime.

DateTimeOffset = 21

A DateTimeOffset, encoded as a two-element vector of the UTC time and the offset in minutes.

Decimal = 19

A decimal.

Double = 18

A double.

Half = 16

A Half.

Int128 = 13

An Int128.

Int16 = 7

An short.

Int32 = 9

An int.

Int64 = 11

A long.

Rune = 2

A Rune, encoded as its unicode scalar value.

SByte = 5

An sbyte.

Single = 17

A float.

String = 3

A string.

TimeSpan = 22

A TimeSpan.

UInt128 = 14

A UInt128.

UInt16 = 8

An ushort.

UInt32 = 10

An uint.

UInt64 = 12

A ulong.

Remarks

The precise encoding of each member is format specific. Consult the documentation for each format for details.