Home
last modified time | relevance | path

Searched refs:fromBytes (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/dports/biology/avida/avida-2.12.4-src/apps/viewer-macos/frameworks/CorePlot/Source/
H A DCPTNumericData+TypeConversion.m116 while ( fromBytes < lastSample ) *toBytes++ = (int16_t)*fromBytes++;
123 while ( fromBytes < lastSample ) *toBytes++ = (int32_t)*fromBytes++;
130 while ( fromBytes < lastSample ) *toBytes++ = (int64_t)*fromBytes++;
141 while ( fromBytes < lastSample ) *toBytes++ = (uint8_t)*fromBytes++;
148 while ( fromBytes < lastSample ) *toBytes++ = (uint16_t)*fromBytes++;
155 while ( fromBytes < lastSample ) *toBytes++ = (uint32_t)*fromBytes++;
173 while ( fromBytes < lastSample ) *toBytes++ = (float)*fromBytes++;
180 while ( fromBytes < lastSample ) *toBytes++ = (double)*fromBytes++;
226 while ( fromBytes < lastSample ) *toBytes++ = (int8_t)*fromBytes++;
287 while ( fromBytes < lastSample ) *toBytes++ = (float)*fromBytes++;
[all …]
/dports/devel/py-twisted/Twisted-22.1.0/src/twisted/web/test/
H A Dtest_webclient.py146 uri = client.URI.fromBytes(self.makeURIString(b"http://HOST"))
161 uri = client.URI.fromBytes(
185 parsed = client.URI.fromBytes(uri)
201 parsed = client.URI.fromBytes(uri)
218 client.URI.fromBytes(uri),
231 parsed = client.URI.fromBytes(uri)
248 parsed = client.URI.fromBytes(uri)
266 parsed = client.URI.fromBytes(uri)
294 uri = client.URI.fromBytes(
324 uri = client.URI.fromBytes(goodInput)
[all …]
/dports/databases/hbase/hbase-1.2.1/hbase-prefix-tree/src/test/java/org/apache/hadoop/hbase/util/vint/
H A DTestFIntTool.java83 Assert.assertEquals(0, UFIntTool.fromBytes(new byte[] { 0 })); in testFromBytes()
84 Assert.assertEquals(1, UFIntTool.fromBytes(new byte[] { 1 })); in testFromBytes()
85 Assert.assertEquals(255, UFIntTool.fromBytes(new byte[] { -1 })); in testFromBytes()
86 Assert.assertEquals(256, UFIntTool.fromBytes(new byte[] { 1, 0 })); in testFromBytes()
87 Assert.assertEquals(256 + 3, UFIntTool.fromBytes(new byte[] { 1, 3 })); in testFromBytes()
88 Assert.assertEquals(256 + 128, UFIntTool.fromBytes(new byte[] { 1, -128 })); in testFromBytes()
89 Assert.assertEquals(256 + 255, UFIntTool.fromBytes(new byte[] { 1, -1 })); in testFromBytes()
90 Assert.assertEquals(Integer.MAX_VALUE, UFIntTool.fromBytes(new byte[] { 127, -1, -1, -1 })); in testFromBytes()
92 UFIntTool.fromBytes(new byte[] { 127, -1, -1, -1, -1, -1, -1, -1 })); in testFromBytes()
101 Assert.assertEquals(values[i], UFIntTool.fromBytes(UFIntTool.getBytes(8, values[i]))); in testRoundTrips()
/dports/editors/imhex/ImHex-1.7.0/source/helpers/
H A Dencoding_file.cpp52 auto fromBytes = hex::parseByteString(from); in parseThingyFile() local
53 if (fromBytes.empty()) continue; in parseThingyFile()
55 if (!this->m_mapping.contains(fromBytes.size())) in parseThingyFile()
56 this->m_mapping.insert({ fromBytes.size(), { } }); in parseThingyFile()
57 this->m_mapping[fromBytes.size()].insert({ fromBytes, to }); in parseThingyFile()
59 this->m_longestSequence = std::max(this->m_longestSequence, fromBytes.size()); in parseThingyFile()
/dports/security/hs-cryptol/cryptol-2.11.0/src/Cryptol/
H A DAES.hs61 fromBytes :: [Word8] -> Word32
62 fromBytes [b0,b1,b2,b3] = w function
391 t0Table = [fromBytes (t0Func a) | a <- [0..255]]
398 t1Table = [fromBytes (t0Func a `rotR` 1) | a <- [0..255]]
405 t2Table = [fromBytes (t0Func a `rotR` 2) | a <- [0..255]]
412 t3Table = [fromBytes (t0Func a `rotR` 3) | a <- [0..255]]
428 u0Table = [fromBytes (u0Func a) | a <- [0..255]]
435 u1Table = [fromBytes (u0Func a `rotR` 1) | a <- [0..255]]
442 u2Table = [fromBytes (u0Func a `rotR` 2) | a <- [0..255]]
449 u3Table = [fromBytes (u0Func a `rotR` 3) | a <- [0..255]]
[all …]
/dports/www/orangehrm/orangehrm-4.9/symfony/lib/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/
H A DGdataContentTypeInfo.php21 public $fromBytes; variable in Google_Service_YouTubeReporting_GdataContentTypeInfo
34 public function setFromBytes($fromBytes) argument
36 $this->fromBytes = $fromBytes;
40 return $this->fromBytes;
/dports/www/owncloud/owncloud/apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/YouTubeReporting/
H A DGdataContentTypeInfo.php21 public $fromBytes; variable in Google_Service_YouTubeReporting_GdataContentTypeInfo
34 public function setFromBytes($fromBytes) argument
36 $this->fromBytes = $fromBytes;
40 return $this->fromBytes;
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/test/java/org/apache/hadoop/registry/client/binding/
H A DTestMarshalling.java62 ServiceRecord r2 = marshal.fromBytes("", bytes); in testRoundTrip()
70 marshal.fromBytes("src", new byte[]{}); in testUnmarshallNoData()
76 marshal.fromBytes("src", new byte[]{'{','}'}, ServiceRecord.RECORD_TYPE); in testUnmarshallNotEnoughData()
82 marshal.fromBytes("src", bytes); in testUnmarshallNoBody()
88 ServiceRecord serviceRecord = marshal.fromBytes("marshalling", bytes); in testUnmarshallWrongType()
97 ServiceRecord serviceRecord = marshal.fromBytes("marshalling", in testUnmarshallWrongLongType()
106 ServiceRecord serviceRecord = marshal.fromBytes("marshalling", in testUnmarshallNoType()
128 ServiceRecord r2 = marshal.fromBytes("", bytes); in testUnknownFieldsRoundTrip()
/dports/lang/zig-devel/zig-0.9.0/lib/std/crypto/pcurves/p256/
H A Dscalar.zig44 return (try Scalar.fromBytes(a, endian)).mul(try Scalar.fromBytes(b, endian)).toBytes(endian);
49 …return (try Scalar.fromBytes(a, endian)).mul(try Scalar.fromBytes(b, endian)).add(try Scalar.fromB…
54 return (try Scalar.fromBytes(a, endian)).add(try Scalar.fromBytes(b, endian)).toBytes(endian);
59 return (try Scalar.fromBytes(s, endian)).neg().toBytes(endian);
64 return (try Scalar.fromBytes(a, endian)).sub(try Scalar.fromBytes(b.endian)).toBytes(endian);
84 return Scalar{ .fe = try Fe.fromBytes(s, endian) };
89 const t = ScalarDouble.fromBytes(384, s, endian);
95 const t = ScalarDouble.fromBytes(512, s, endian);
194 t.x1 = Fe.fromBytes(b, .Little) catch unreachable;
200 t.x2 = Fe.fromBytes(b, .Little) catch unreachable;
[all …]
/dports/lang/zig/zig-0.9.0/lib/std/crypto/pcurves/p256/
H A Dscalar.zig44 return (try Scalar.fromBytes(a, endian)).mul(try Scalar.fromBytes(b, endian)).toBytes(endian);
49 …return (try Scalar.fromBytes(a, endian)).mul(try Scalar.fromBytes(b, endian)).add(try Scalar.fromB…
54 return (try Scalar.fromBytes(a, endian)).add(try Scalar.fromBytes(b, endian)).toBytes(endian);
59 return (try Scalar.fromBytes(s, endian)).neg().toBytes(endian);
64 return (try Scalar.fromBytes(a, endian)).sub(try Scalar.fromBytes(b.endian)).toBytes(endian);
84 return Scalar{ .fe = try Fe.fromBytes(s, endian) };
89 const t = ScalarDouble.fromBytes(384, s, endian);
95 const t = ScalarDouble.fromBytes(512, s, endian);
194 t.x1 = Fe.fromBytes(b, .Little) catch unreachable;
200 t.x2 = Fe.fromBytes(b, .Little) catch unreachable;
[all …]
/dports/mail/libvmime/vmime-0.9.2/tests/parser/
H A DcharsetFilteredOutputStreamTest.cpp108 …const unsigned long inLength = (entry.fromLength == 0 ? strlen(entry.fromBytes) : entry.fromLength… in testStreamCopy()
109 vmime::string in(entry.fromBytes, entry.fromBytes + inLength); in testStreamCopy()
145 …const unsigned long inLength = (entry.fromLength == 0 ? strlen(entry.fromBytes) : entry.fromLength… in testOneByteAtTime()
146 vmime::string in(entry.fromBytes, entry.fromBytes + inLength); in testOneByteAtTime()
185 …const unsigned long inLength = (entry.fromLength == 0 ? strlen(entry.fromBytes) : entry.fromLength… in testVariableInputChunk()
186 vmime::string in(entry.fromBytes, entry.fromBytes + inLength); in testVariableInputChunk()
H A DcharsetTest.cpp64 …const unsigned long inLength = (entry.fromLength == 0 ? strlen(entry.fromBytes) : entry.fromLength… in VMIME_TEST_SUITE_BEGIN()
65 vmime::string in(entry.fromBytes, entry.fromBytes + inLength); in VMIME_TEST_SUITE_BEGIN()
88 …const unsigned long inLength = (entry.fromLength == 0 ? strlen(entry.fromBytes) : entry.fromLength… in testConvertStreamValid()
89 vmime::string in(entry.fromBytes, entry.fromBytes + inLength); in testConvertStreamValid()
/dports/net/rclone/rclone-1.57.0/vendor/storj.io/common/storj/
H A Dstreamid_test.go24 fromBytes, err := storj.StreamIDFromBytes(streamID.Bytes())
26 require.Equal(t, streamID.Bytes(), fromBytes.Bytes())
30 require.Equal(t, streamID, fromBytes)
31 require.Equal(t, expectedSize, fromBytes.Size())
/dports/net/storj/storj-1.45.3/vendor/storj.io/common/storj/
H A Dstreamid_test.go24 fromBytes, err := storj.StreamIDFromBytes(streamID.Bytes())
26 require.Equal(t, streamID.Bytes(), fromBytes.Bytes())
30 require.Equal(t, streamID, fromBytes)
31 require.Equal(t, expectedSize, fromBytes.Size())
/dports/databases/hbase/hbase-1.2.1/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/decode/row/
H A DRowNodeReader.java136 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getFamilyOffset()
142 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getColumnOffset()
148 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getTagOffset()
154 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getTimestampIndex()
160 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getMvccVersionIndex()
173 int offset = (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getValueOffset()
180 int length = (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getValueLength()
187 return (int) UFIntTool.fromBytes(block, startIndex, fIntWidth); in getNextNodeOffset()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.core/src/test/java/org/springframework/core/serializer/
H A DSerializationConverterTests.java40 DeserializingConverter fromBytes = new DeserializingConverter(); in serializeAndDeserializeString() local
41 assertEquals("Testing", fromBytes.convert(bytes)); in serializeAndDeserializeString()
72 DeserializingConverter fromBytes = new DeserializingConverter(); in deserializationFailure() local
73 fromBytes.convert("Junk".getBytes()); in deserializationFailure()
/dports/devel/spark/spark-2.1.1/common/unsafe/src/main/java/org/apache/spark/unsafe/types/
H A DUTF8String.java118 return fromBytes(spaces); in blankString()
261 return fromBytes(bytes); in substring()
342 return fromBytes(bytes); in toUpperCase()
372 return fromBytes(bytes); in toLowerCase()
405 return fromBytes(bytes); in toTitleCase()
626 return fromBytes(bytes); in subStringIndex()
646 return fromBytes(bytes); in subStringIndex()
741 return fromBytes(result); in concat()
792 return fromBytes(result); in concatWs()
1010 return fromBytes(getBytes()); in clone()
[all …]
/dports/devel/hs-hoogle/hoogle-5.0.18.2/_cabal_deps/foundation-0.0.25/Foundation/Conduit/
H A DTextual.hs5 , fromBytes
61 fromBytes :: MonadThrow m => S.Encoding -> Conduit (UArray Word8) String m ()
62 fromBytes encoding = loop mempty function
66 | otherwise = case S.fromBytes encoding buf of
70 case S.fromBytes encoding (current `mappend` nextBuf) of
/dports/security/hs-cryptol/cryptol-2.11.0/_cabal_deps/sbv-8.12/Documentation/SBV/Examples/Crypto/
H A DAES.hs123 invMixColumns state = map fromBytes $ transpose $ mmult (map toBytes state)
154 subWordRcon w rc = fromBytes [a `xor` rc, b, c, d]
218 t0 = select t0Table 0 where t0Table = [fromBytes (t0Func a) | a <- [0..255]]
222 t1 = select t1Table 0 where t1Table = [fromBytes (t0Func a `rotR` 1) | a <- [0..255]]
226 t2 = select t2Table 0 where t2Table = [fromBytes (t0Func a `rotR` 2) | a <- [0..255]]
230 t3 = select t3Table 0 where t3Table = [fromBytes (t0Func a `rotR` 3) | a <- [0..255]]
242 u0 = select t0Table 0 where t0Table = [fromBytes (u0Func a) | a <- [0..255]]
246 u1 = select t1Table 0 where t1Table = [fromBytes (u0Func a `rotR` 1) | a <- [0..255]]
250 u2 = select t2Table 0 where t2Table = [fromBytes (u0Func a `rotR` 2) | a <- [0..255]]
273 f True j = fromBytes [ sbox (a !! ((j+0) `mod` 4) !! 0)
[all …]
/dports/security/hs-cryptol/cryptol-2.11.0/_cabal_deps/sbv-8.12/Data/SBV/Core/
H A DSized.hs421 fromBytes [x] = x function
430 fromBytes as
432 = (fromBytes :: [SWord 8] -> SWord 8) (take 1 as) # fromBytes (drop 1 as)
442 fromBytes as
444 = (fromBytes :: [SWord 8] -> SWord 16) (take 2 as) # fromBytes (drop 2 as)
455 fromBytes as
457 = (fromBytes :: [SWord 8] -> SWord 32) (take 4 as) # fromBytes (drop 4 as)
470 fromBytes as
489 fromBytes as
516 fromBytes as
[all …]
/dports/databases/opentsdb/opentsdb-2.3.0/src/tools/
H A DCliUtils.java43 static final Method fromBytes; field in CliUtils
75 fromBytes = uidclass.getDeclaredMethod("fromBytes", byte[].class);
76 fromBytes.setAccessible(true);
260 static String fromBytes(final byte[] b) { in fromBytes() method in CliUtils
262 return (String) fromBytes.invoke(null, b); in fromBytes()
264 throw new RuntimeException("fromBytes=" + fromBytes, e); in fromBytes()
/dports/lang/zig-devel/zig-0.9.0/lib/std/crypto/
H A Daegis.zig13 const key_block = AesBlock.fromBytes(&key);
14 const nonce_block = AesBlock.fromBytes(&nonce);
47 const msg0 = AesBlock.fromBytes(src[0..16]);
48 const msg1 = AesBlock.fromBytes(src[16..32]);
74 const tmp = AesBlock.fromBytes(&sizes).xorBlocks(blocks[2]);
180 const key_block1 = AesBlock.fromBytes(key[0..16]);
181 const key_block2 = AesBlock.fromBytes(key[16..32]);
182 const nonce_block1 = AesBlock.fromBytes(nonce[0..16]);
183 const nonce_block2 = AesBlock.fromBytes(nonce[16..32]);
217 const msg = AesBlock.fromBytes(src);
[all …]
/dports/lang/zig/zig-0.9.0/lib/std/crypto/
H A Daegis.zig13 const key_block = AesBlock.fromBytes(&key);
14 const nonce_block = AesBlock.fromBytes(&nonce);
47 const msg0 = AesBlock.fromBytes(src[0..16]);
48 const msg1 = AesBlock.fromBytes(src[16..32]);
74 const tmp = AesBlock.fromBytes(&sizes).xorBlocks(blocks[2]);
180 const key_block1 = AesBlock.fromBytes(key[0..16]);
181 const key_block2 = AesBlock.fromBytes(key[16..32]);
182 const nonce_block1 = AesBlock.fromBytes(nonce[0..16]);
183 const nonce_block2 = AesBlock.fromBytes(nonce[16..32]);
217 const msg = AesBlock.fromBytes(src);
[all …]
/dports/games/hedgewars-server/hedgewars-src-1.0.0/gameServer/_cabal_deps/MissingH-1.4.3.0/src/Data/Bits/
H A DUtils.hs23 module Data.Bits.Utils(getBytes, fromBytes,
51 fromBytes :: (Bits a, Num a) => [a] -> a
52 fromBytes input = function
/dports/devel/hadoop/hadoop-1.2.1/src/test/org/apache/hadoop/io/
H A DTestUTF8.java117 String roundTrip = UTF8.fromBytes(encoded); in testNonBasicMultilingualPlane()
128 UTF8.fromBytes(invalid); in testInvalidUTF8()
144 UTF8.fromBytes(invalid); in test5ByteUtf8Sequence()
162 UTF8.fromBytes(truncated); in testInvalidUTF8Truncated()

12345678910>>...24