Searched refs:toByte (Results 1 – 9 of 9) sorted by relevance
263 values[i] = value.r.toUByte().toByte() in set()264 values[i + 1] = value.g.toUByte().toByte() in set()265 values[i + 2] = value.b.toUByte().toByte() in set()266 values[i + 3] = value.a.toUByte().toByte() in set()300 return ByteArray(sizeX * sizeY * elementSize) { (r.nextInt(255) - 128).toByte() } in indexOfVector()325 (r.nextInt(255) - 128).toByte() in randomCube()341 (x * 255 / (cubeSize.sizeX - 1)).toByte(), in identityCube()342 (y * 255 / (cubeSize.sizeY - 1)).toByte(), in identityCube()343 (z * 255 / (cubeSize.sizeZ - 1)).toByte(), in identityCube()344 (255).toByte() in identityCube()
48 …eturn ByteArray(outInFloat.values.size) { unitFloatClampedToUByte(outInFloat.values[it]).toByte() } in <lambda>()
165 private static int toByte(char c) in toByte() method in HexDump182 … buffer[i / 2] = (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1))); in hexStringToByteArray()
67 val codec = BackupCodec.fromId(checkedInputStream.read().toByte()) in <lambda>()
202 return BackupCodec.fromId(id.toByte()).decode(inputStream) in <lambda>()
1414 var red = ByteArray(256) { it.toByte() } in <lambda>()1415 var green = ByteArray(256) { it.toByte() } in <lambda>()1416 var blue = ByteArray(256) { it.toByte() } in <lambda>()1417 var alpha = ByteArray(256) { it.toByte() } in <lambda>()
911 private static int toByte(char c) { in toByte() method in BinaryXmlPullParser937 buffer[i / 2] = (byte) ((toByte(value.charAt(i)) << 4) in hexStringToBytes()938 | toByte(value.charAt(i + 1))); in hexStringToBytes()
207 broadcastCode = Base64.decode(value.dropLastWhile { it.equals(0.toByte()) } in <lambda>()
488 public byte[] toByte() { in toByte() method in SyntheticPasswordManager.SyntheticPasswordBlob1361 saveState(SP_BLOB_NAME, blob.toByte(), protectorId, userId); in createSyntheticPasswordBlob()