go:noinline
(typeID uint32)
| 257 | |
| 258 | //go:noinline |
| 259 | func validateUserTypeID(typeID uint32) error { |
| 260 | if typeID > maxUserTypeID { |
| 261 | return fmt.Errorf("typeID must be in range [0, 0xfffffffe], got %d", typeID) |
| 262 | } |
| 263 | return nil |
| 264 | } |
| 265 | |
| 266 | // RegisterStruct registers a struct type with a numeric ID for cross-language serialization. |
| 267 | // This is compatible with Java's fory.register(Class, int) method. |
no outgoing calls
no test coverage detected