public enum JCGLUnsignedType extends Enum<JCGLUnsignedType>
Enum Constant and Description |
---|
TYPE_UNSIGNED_BYTE
An unsigned 8-bit integer.
|
TYPE_UNSIGNED_INT
An unsigned 32-bit integer.
|
TYPE_UNSIGNED_SHORT
An unsigned 16-bit integer.
|
Modifier and Type | Method and Description |
---|---|
static JCGLUnsignedType |
fromScalar(JCGLScalarType s)
Convert the given scalar integral type to a scalar unsigned type.
|
static JCGLUnsignedType |
fromScalarIntegral(JCGLScalarIntegralType s)
Convert the given scalar integral type to a scalar unsigned type.
|
int |
getSizeBytes() |
static JCGLUnsignedType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JCGLUnsignedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JCGLUnsignedType TYPE_UNSIGNED_BYTE
public static final JCGLUnsignedType TYPE_UNSIGNED_INT
public static final JCGLUnsignedType TYPE_UNSIGNED_SHORT
public static JCGLUnsignedType[] values()
for (JCGLUnsignedType c : JCGLUnsignedType.values()) System.out.println(c);
public static JCGLUnsignedType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static JCGLUnsignedType fromScalarIntegral(JCGLScalarIntegralType s) throws IllegalArgumentException
s
- The scalar integral typeIllegalArgumentException
- Iff the given type is not unsignedpublic static JCGLUnsignedType fromScalar(JCGLScalarType s) throws IllegalArgumentException
s
- The scalar integral typeIllegalArgumentException
- Iff the given type is not unsignedpublic int getSizeBytes()
Copyright © 2017 <code@io7m.com> http://io7m.com