The MIDlet implements the RecordComparator interface and defines a compare (byte rec1, byte rec2) method to compare two candidate records.
MIDlet实现RecordComparator接口,并定义compare (byterec1,byterec2)方法来比较两个候选记录。
As this method takes two byte arrays and returns another byte array, it can be used in series with itself any number of times to concatenate any number of byte arrays.
因为这个方法取两个字节数组并返回另一个字节数组,所以它可以自身串联任意次以串接任意数量的字节数组。
Figure 1 shows a data block (for example, a 512 byte sector) with the 8-byte footer attached to the end.
图1显示一个数据块(例如一个512字节的扇区),末尾有8字节的附加部分。
Byte arrays are limited in length to 75 percent of MAX_VALUE_LENGTH because byte arrays are stored by encoding them as strings.
字节数组限制为MAX_VALUE_LENGTH长度75%,因为字节数组是通过编码为字符串存储的。
The counting of string length using a byte is referred to as byte semantics in this article, and the counting of string length using the number of characters is referred to as character semantics.
本文中将使用字节计算字符串长度的方法称作字节语义,而使用字符数计算字符串长度的方法称作字符语义。
Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.
转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。
Byte time is the time it takes to transmit a byte at wireline speed.
字节时间是以有线速度传输一个字节所花费的时间。
RC4 begins by creating a 256-byte "s" byte array and populating it with 0 to 255. You then iterate over the array by mixing in bytes from the key.
RC4从创建一个256字节的数组“S”开始,并从0到255对其进行填充。
This ACTS as a "signature" or "byte-order mark (BOM)" to identify the encoding and byte-order used in a file.
这作为一个“特征符”或“字节顺序标记(byte - order mark,BOM)”来识别文件中使用的编码和字节顺序。
That means that words will be 4-byte aligned, halfwords will be 2-byte aligned, and bytes don't have to be aligned at all.
这意味着字将是4字节对齐的,半字将是2字节对齐的,而字节则不需要对齐。
If we had only one byte array, it would be easy to write to a slot in the data tree, since the Preferences API supports byte arrays directly.
如果我们只有一个字节数组,写入数据树中的slot会很容易,因为PreferencesAPI直接支持字节数组。
That is to say, on the x86 system, the least-significant byte (the smallest values) are stored in the first byte of ll; on the Power Architecture system, they're stored in the last.
这就是说,在x86系统上,最低位字节(最小值)首先存储在ll的第一个字节中;在PowerArchitecture系统上,它们则存储到最后。
Count the number of ones in each byte of the 8-byte block; if the number of ones is even, make it odd by setting the least significant bit to one.
统计8字节块中每字节中的1的个数,如果1的个数为偶数,那么就设置最低位为1使它成为奇数。
The most obvious issue is that the interface in Listing 6 requires a JNI call for each bit set or retrieved, as well as a JNI call to read a byte from, or write a byte to, the serial port.
最显著的一个问题就是,清单6中的接口在设置或检索每个位,以及从串行端口读取字节或者向串行端口写入字节都需要一个JNI调用。
Instead of forcing all Unicode characters into a 2 -, 3 -, or 4-byte straightjacket, UTF-8 admits 1-byte (8-bit) to 4-byte encodings.
UTF - 8并没有迫使所有unicode字符挤入2字节、3字节或者4字节中,它允许对1字节(8位)到4字节进行编码。
To encrypt a byte, we xor this pseudo-random byte with the byte we want to encrypt.
对一个字节进行加密,我们对伪随机字节和要加密的字节进行异或运算。
You selected a single-byte font to replace a double-byte font. Please select a double-byte font.
单字节字体不能替换双字节字体。请选择一个双字节字体。
Thus, I can cast the result of the bitwise operation as a byte, put the byte in a single-byte array, and return the array to the calling application.
因此,我可以将按位操作的结果造型为一个字节,将这个字节放入一个单字节数组,并将这个数组返回给调用应用程序。
Unlike some of the other tools, however, Findbugs USES byte code and the byte code Engineering Library, so it can be a challenge to learn how to implement new rules within the system.
但是与其他某些工具不同,Findbugs使用字节代码和字节代码工程库,因此学习如何在系统中实现新的规则可能是个挑战。
Remember that DMA transfers of 16 bytes or more must be in 16-byte multiples and aligned to 16-byte boundaries on both the SPE and the PPE.
记住,传输16字节或更多字节的dma在spe和PPE上必须是16字节的整数倍,并按照16字节边界进行对齐。
These algorithms can use less data on a per-byte basis to correct for more serious problems than is possible with 512-byte sectors.
这些算法可使每个字节使用较少的数据,从而比使用 512 字节扇区能纠正更多严重问题。
Herein lies the problem: Digital signatures rely on byte-level equivalence, whereas it is possible to have two XML documents that are logically the same, but contain different byte sequences.
问题就在于此:数字签名依赖于字节级的等价测试,但是可能有两个逻辑上相同但包含不同字节序列的XML文档。
If you have the option, use standard library functions to do byte-swapping operations, and standardize on the order in which bytes are stored in your data files; network byte order is the best.
如果可以选择的话,请使用标准库函数来进行字节交换操作,并按照字节在数据文件中存储的顺序进行标准化;网络字节顺序最适合这种工作。
This method relies on the FileStream class to buffer the input and output files appropriately, so that the code can work byte by byte to perform the necessary processing.
该方法依靠FileStream类来适当地缓冲输入和输出文件,以便代码可以逐个字节地执行必要的处理。
Recall from the discussion in the first article of this series that whenever I want to use multi-byte integer format, I must set the leftmost bit of the first length byte to 1.
回想在本系列第一篇文章中的讨论,在希望使用多字节整数格式的时候,必须将第一个长度字节的最左边一位设置为1。
To control the byte order mark (BOM) in the stylesheet, you can now use the byte-order-mark Serialization parameter.
为了控制样式表中的字节顺序标志(byte -order - mark,BOM),可以使用byte - order - mark Serialization参数。
If the length value is less than 256, I will need a total of 2 length bytes — 1 byte to indicate that there is 1 more length byte and 1 byte to hold the actual length value.
如果长度值小于256,那么就需要总共2个长度字节——1个字节表明还有一个长度字节,1个字节包含实际的长度值。
If the BIOS contains such an assumption, it's likely that your computer won't boot from a disk that has 4096-byte sectors and lacks firmware translation to 512-byte sectors.
如果BIOS包含这样一个假设,那么您的计算机可能不会从一个含4096字节扇区且缺乏到512字节扇区的固件转换的磁盘上启动。
If the BIOS contains such an assumption, it's likely that your computer won't boot from a disk that has 4096-byte sectors and lacks firmware translation to 512-byte sectors.
如果BIOS包含这样一个假设,那么您的计算机可能不会从一个含4096字节扇区且缺乏到512字节扇区的固件转换的磁盘上启动。
应用推荐