"by the bytes" vs "in bytes"
"by the bytes" vs "in bytes"
template<class CharType>
struct StringWithLength
{
size_t length;
CharType* str_buf;
};
我想对字段长度添加一些注释。我有两个选择:
#1. "The field length is the size of str_buf by the byte"
(Consider "The worker is paid by the hour")
#2. "The field length is the size of str_buf in bytes"
从一个以英语为母语的人的角度来看,哪个更自然?
谢谢。
我都不会用。我会这样说:
length
字段的值为缓冲区的大小,单位为字节。
字段本身并不像计算机中的所有数据一样"以字节表示"。它是以字节为单位的缓冲区大小(或文本大小)
我的母语不是英语,但我已经说了10多年英语,并且在英语国家生活了这么长时间,所以我想说,从我的经验来看,第2条更自然。
相关文章:
- netcat command in c++
- Difference in displaying cv2 Mat
- C++ MFC Libraries in Travis CI
- 如何在OpenSSL中从configuration.h.in获取configuration.h
- 创建具有 new in 函数和"this is nullptr"异常的对象
- IN, OUT, INOUT Parameters
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 有人安装"IITB Simplecpp in mac"吗?
- 从 C 样式字符串中删除子字符串 "in place" 在C++代码中
- 如何修复"error: ‘_1’ was not declared in this scope"?
- Softmax Implementation in C++
- 将 out/in out 参数与 if/switch 的 init 语句一起使用
- IF-nesting in c++
- Gurobi GRBModel and GRBmodel in C++
- Tensorflow Hub in C++
- Centos7 g++ "to_string is not in a member of std"
- InitializeCriticalSectionEx Not Located In KERNEL32.Dll
- 将 lambda 表达式传递给 std::function in C++
- vtkTypeTraits.h 错误:"Type long is not 4 or 8 bytes in size."
- "by the bytes" vs "in bytes"