ソースを参照

Added "size units" to API conventions docs

Clinton Gormley 10 年 前
コミット
9d71c7210b
1 ファイル変更16 行追加0 行削除
  1. 16 0
      docs/reference/api-conventions.asciidoc

+ 16 - 0
docs/reference/api-conventions.asciidoc

@@ -360,6 +360,22 @@ are:
 `s`::   Second
 `ms`::  Milli-second
 
+[[size-units]]
+[float]
+=== Data size units
+
+Whenever the size of data needs to be specified, eg when setting a buffer size
+parameter, the value must specify the unit, like `10kb` for 10 kilobytes.  The
+supported units are:
+
+[horizontal]
+`b`::   Bytes
+`kb`::  Kilobytes
+`mb`::  Megabytes
+`gb`::  Gigabytes
+`tb`::  Terabytes
+`pb`::  Petabytes
+
 [[distance-units]]
 [float]
 === Distance Units