android.os.Parcel.writeFloatArray()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(163)

本文整理了Java中android.os.Parcel.writeFloatArray()方法的一些代码示例,展示了Parcel.writeFloatArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.writeFloatArray()方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:writeFloatArray

Parcel.writeFloatArray介绍

暂无

代码示例

代码示例来源:origin: ArthurHub/Android-Image-Cropper

@Override
public void writeToParcel(Parcel dest, int flags) {
 dest.writeParcelable(getOriginalUri(), flags);
 dest.writeParcelable(getUri(), flags);
 dest.writeSerializable(getError());
 dest.writeFloatArray(getCropPoints());
 dest.writeParcelable(getCropRect(), flags);
 dest.writeParcelable(getWholeImageRect(), flags);
 dest.writeInt(getRotation());
 dest.writeInt(getSampleSize());
}

代码示例来源:origin: robolectric/robolectric

@Test
public void testReadWriteFloatArray() throws Exception {
 final float[] floats = { 1.1f, 2.0f };
 parcel.writeFloatArray(floats);
 parcel.setDataPosition(0);
 final float[] floats2 = new float[floats.length];
 parcel.readFloatArray(floats2);
 assertTrue(Arrays.equals(floats, floats2));
}

代码示例来源:origin: robolectric/robolectric

@Test
public void testWriteAndCreateNullFloatArray() throws Exception {
 parcel.writeFloatArray(null);
 parcel.setDataPosition(0);
 assertThat(parcel.createFloatArray()).isNull();
}

代码示例来源:origin: guolindev/giffun

@Override
public void writeToParcel(Parcel dest, int flags) {
 dest.writeParcelable(getOriginalUri(), flags);
 dest.writeParcelable(getUri(), flags);
 dest.writeSerializable(getError());
 dest.writeFloatArray(getCropPoints());
 dest.writeParcelable(getCropRect(), flags);
 dest.writeParcelable(getWholeImageRect(), flags);
 dest.writeInt(getRotation());
 dest.writeInt(getSampleSize());
}

代码示例来源:origin: codezjx/AndLinker

@Override
public void writeToParcel(Parcel dest, int flags, float[] val) {
  dest.writeFloatArray(val);
}

代码示例来源:origin: pmarks-net/chromadoze

@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeFloatArray(mData);
}

代码示例来源:origin: stackoverflow.com

out.writeFloatArray(data);

相关文章

Parcel类方法