mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Fix typos in calculation functions and add missing function (#22614)
This commit is contained in:
9
types/bytebuffer/index.d.ts
vendored
9
types/bytebuffer/index.d.ts
vendored
@@ -120,12 +120,17 @@ declare class ByteBuffer
|
||||
/**
|
||||
* Calculates the number of UTF8 bytes of a string.
|
||||
*/
|
||||
static calculateUTF8Byte( str: string ): number;
|
||||
static calculateUTF8Bytes( str: string ): number;
|
||||
|
||||
/**
|
||||
* Calculates the number of UTF8 characters of a string.JavaScript itself uses UTF- 16, so that a string's length property does not reflect its actual UTF8 size if it contains code points larger than 0xFFFF.
|
||||
*/
|
||||
static calculateUTF8Char( str: string ): number;
|
||||
static calculateUTF8Chars( str: string ): number;
|
||||
|
||||
/**
|
||||
* Calculates the number of UTF8 bytes of a string. This is an alias of ByteBuffer#calculateUTF8Bytes.
|
||||
*/
|
||||
static calculateString( str: string ): number;
|
||||
|
||||
/**
|
||||
* Calculates the actual number of bytes required to store a 32bit base 128 variable-length integer.
|
||||
|
||||
Reference in New Issue
Block a user