code: func RegisterTypeEncoderFunc(typ string, fun EncoderFunc, isEmptyFunc func(unsafe.Pointer) bool) {
  	typeEncoders[typ] = &funcEncoder{fun, isEmptyFunc}
  }
docs: // RegisterTypeEncoderFunc register TypeEncoder for a type with encode/isEmpty function