当对象后来从其字节串重建时,内存中新建的对象与原对象具有相同的结构和值,但位于不同的内存地址。
When the object is later re-created from its byte string, it will be a new in-memory object identical in structure and value to the original, though located at a different memory address.
一条消息仅是对使用它的应用程序有意义的一串字节,而队列则是消息的容器。
A message is simply a string of bytes that is meaningful to the applications that use it, and a queue is a container for messages.
再假设您构建传入流时,使前4个字节(要非串形化的内容的长度)的读数为256。
Now assume you construct the incoming stream so that the lead 4 bytes (the length of what will get deserialized) reads 256.
对于单字节字符编码模式,一个字节组成一个字符,单字节字符串的长度与字符串的字节长度相同。
In the case of a single-byte character encoding scheme, a single byte constitutes a character and the length of a single byte string is the same as the byte length of the string.
该脚本由 ByteLoader前同步码组成,编译好的代码以字节字符串的形式保存。
The script consists of the ByteLoader preamble, with the compiled code stored as a byte string.
SSL服务器还发送一个会话标识、一个随机字节字符串以及它的数字证书。
It also sends a session ID, a random byte string, and its digital certificate.
在我们的应用程序中,用户输入的日期和时间被连接成一个字符串,转换成字节,然后被存储。
In our application, the date and time entered by the user are concatenated into a string, converted into bytes, and stored.
如SQL标准中所述,此函数返回输入字符串的八位字节长度或字节长度。
This function, as mentioned in SQL standard, returns the length of the input string in octets or bytes.
这里的不同之处在于,我们将该有效负载读入字节数组而不是字符串,因为这使得解析它比较容易。
The difference here is that we read the payload into a byte array instead of a String, because that makes parsing it a little easier.
使用OCTETS作为字符串长度单元时,通过简单地计算字符串的字节数即可确定字符串的长度。
When OCTETS is used as the string length unit, the length of a string is determined by simply counting the bytes of the string.
得到第1步中串接的字符串的字节数组表达。
Get the byte array representation of the concatenated string from Step 1.
步骤(4)通过将字符串转换成字节序列(比如二进制)准备好通过流发送的请求。
Step (4) prepares the request to be sent over the stream by converting the string into an array of bytes, i.e. binary.
首先介绍了一些关键概念,如针对字符串数据的字符语义和字节语义。
It first explained key concepts, such as character and byte semantics with respect to string data.
如果采用特殊编码的某个字符的长度跨越了多个字节,则基于字符的字符串函数可以将每个字符处理为一个单元而不是一个字节序列。
If a character in a particular encoding spans multiple bytes, the character-based string functions can process each character as a single unit as opposed to a sequence of bytes.
此处,读取字节还不足以提取必要的信息,如果要读取字符串,则要返回一个缓冲区。
Here, reading the bytes is not enough to extract the necessary information; it returns a buffer if the string is read.
接着对该密码字节数组解密,解密的字节数组作为文本字符串返回。
The cipher byte array is then decrypted, and the decrypted byte array is returned as a text string.
但是由于第一个字符是多字节字符,因此得到结果3,它是搜索字符串的第一次出现的位置。
But since you have a multi-byte character as the first character, you get the result as 3, which is the first occurrence of the search string.
但是如果使用字节语义并使用UTF - 8对字符进行编码,则该字符串的长度为6字节。
But if byte semantics is used, and characters are encoded using UTF-8, then the length of the string is 6 bytes.
将字符看作一个单元而不是一个字节序列,这是进行多字节字符的字符串操作的必要条件。
Recognizing the character as a single, unit as opposed to a sequence of bytes, is a requirement in the case of string manipulations involving multi-byte characters.
字符串对象和字节对象是不兼容的。
ASCII字符串也能被用于表示二进制数据从而当作字节流。
ASCII strings can also be used to represent binary data as byte streams.
命名文件系统属性分类是一个关联到目录或者文件的字节流,通过一个字符串名引用。
The named file system attribute classification is a byte stream that is associated with a directory or file and is referred to by a string name.
假设您拥有一个UTF - 8编码的字符,其长度为3字节,而字符串只拥有编码的前两个字节。
Consider that you have a character in UTF-8 encoding has length of 3 bytes, and the string has only the first two byte of the encoding.
没有了语义,数据只是一串串没有任何意义的二进制字节。
Without semantics, data is just strings of binary without any meaning.
输入文本字符串转换成了字节数组,并用它填充。
The input text string is converted into an array of bytes and is padded.
原来的字符串占用48字节。
本文中将使用字节计算字符串长度的方法称作字节语义,而使用字符数计算字符串长度的方法称作字符语义。
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.
在这个示例中,指针在数据段中占用了4个字节,但是指针所指向的字符串则不在数据段中。
In that case, the contents of pointer gonzo - a 4-byte memory address - live in the data segment. The actual string it points to does not, however.
字节数组限制为MAX_VALUE_LENGTH长度75%,因为字节数组是通过编码为字符串存储的。
Byte arrays are limited in length to 75 percent of MAX_VALUE_LENGTH because byte arrays are stored by encoding them as strings.
在图5中,已经指定字符串第一个字节的长度为1的子字符串。
In Figure 5, the substring of length 1 from the first byte of the string has been specified.
应用推荐