Esempio n. 1
0
jobject makeCounterValueString(JNIEnv *env, const char* value, int len)
{
	jclass clazz = env->FindClass("com/ixora/rms/data/CounterValueString");
	jmethodID ctor = env->GetMethodID(clazz, "<init>", "(Ljava/lang/String;)V");

	// Convert to unicode, using a self-cleaning buffer
	a2w			objValue(value, len);
	wchar_t*	wszValue = objValue.wget();

	return env->NewObject(clazz, ctor, env->NewString((const jchar*)wszValue, len));
}
Esempio n. 2
0
void BuiltinField::setChar(const Object& obj, char value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}
Esempio n. 3
0
void BuiltinField::setBool(const Object& obj, bool value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}
Esempio n. 4
0
void StringField::setString(const Object& obj, const std::string& value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}
Esempio n. 5
0
void BuiltinField::setDouble(const Object& obj, double value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}
Esempio n. 6
0
void BuiltinField::setFloat(const Object& obj, float value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}
Esempio n. 7
0
void BuiltinField::setInt(const Object& obj, int value) const
{
	Object objValue(value, false);
	set(obj, objValue);
}