()
| 1064 | } |
| 1065 | |
| 1066 | func (s Static) BooleanArray() ([]bool, bool) { |
| 1067 | if s.Type != TypeBooleanArray { |
| 1068 | return nil, false |
| 1069 | } |
| 1070 | |
| 1071 | if s.valBytes == nil { |
| 1072 | return nil, true |
| 1073 | } |
| 1074 | if len(s.valBytes) == 0 { |
| 1075 | return []bool{}, true |
| 1076 | } |
| 1077 | return unsafe.Slice((*bool)(unsafe.Pointer(&s.valBytes[0])), len(s.valBytes)), true |
| 1078 | } |
| 1079 | |
| 1080 | func (s Static) isNumeric() bool { |
| 1081 | return s.Type.isNumeric() |
no outgoing calls