Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. * Writes a 32 bit float to a buffer using little endian byte order.
  3. * @name writeFloatLE
  4. * @function
  5. * @param {number} val Value to write
  6. * @param {Uint8Array} buf Target buffer
  7. * @param {number} pos Target buffer offset
  8. * @returns {undefined}
  9. */
  10. export function writeFloatLE(val: number, buf: Uint8Array, pos: number): void;
  11. /**
  12. * Writes a 32 bit float to a buffer using big endian byte order.
  13. * @name writeFloatBE
  14. * @function
  15. * @param {number} val Value to write
  16. * @param {Uint8Array} buf Target buffer
  17. * @param {number} pos Target buffer offset
  18. * @returns {undefined}
  19. */
  20. export function writeFloatBE(val: number, buf: Uint8Array, pos: number): void;
  21. /**
  22. * Reads a 32 bit float from a buffer using little endian byte order.
  23. * @name readFloatLE
  24. * @function
  25. * @param {Uint8Array} buf Source buffer
  26. * @param {number} pos Source buffer offset
  27. * @returns {number} Value read
  28. */
  29. export function readFloatLE(buf: Uint8Array, pos: number): number;
  30. /**
  31. * Reads a 32 bit float from a buffer using big endian byte order.
  32. * @name readFloatBE
  33. * @function
  34. * @param {Uint8Array} buf Source buffer
  35. * @param {number} pos Source buffer offset
  36. * @returns {number} Value read
  37. */
  38. export function readFloatBE(buf: Uint8Array, pos: number): number;
  39. /**
  40. * Writes a 64 bit double to a buffer using little endian byte order.
  41. * @name writeDoubleLE
  42. * @function
  43. * @param {number} val Value to write
  44. * @param {Uint8Array} buf Target buffer
  45. * @param {number} pos Target buffer offset
  46. * @returns {undefined}
  47. */
  48. export function writeDoubleLE(val: number, buf: Uint8Array, pos: number): void;
  49. /**
  50. * Writes a 64 bit double to a buffer using big endian byte order.
  51. * @name writeDoubleBE
  52. * @function
  53. * @param {number} val Value to write
  54. * @param {Uint8Array} buf Target buffer
  55. * @param {number} pos Target buffer offset
  56. * @returns {undefined}
  57. */
  58. export function writeDoubleBE(val: number, buf: Uint8Array, pos: number): void;
  59. /**
  60. * Reads a 64 bit double from a buffer using little endian byte order.
  61. * @name readDoubleLE
  62. * @function
  63. * @param {Uint8Array} buf Source buffer
  64. * @param {number} pos Source buffer offset
  65. * @returns {number} Value read
  66. */
  67. export function readDoubleLE(buf: Uint8Array, pos: number): number;
  68. /**
  69. * Reads a 64 bit double from a buffer using big endian byte order.
  70. * @name readDoubleBE
  71. * @function
  72. * @param {Uint8Array} buf Source buffer
  73. * @param {number} pos Source buffer offset
  74. * @returns {number} Value read
  75. */
  76. export function readDoubleBE(buf: Uint8Array, pos: number): number;