-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimal documentation for micromodules
- Loading branch information
Showing
19 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "protobufjs", | ||
"version": "6.1.0", | ||
"description": "Protocol Buffers for JavaScript.", | ||
"author": "Daniel Wirtz", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
@protobufjs/base64 | ||
================== | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/base64.svg)](https://www.npmjs.com/package/@protobufjs/base64) | ||
|
||
A minimal base64 implementation for number arrays. | ||
|
||
API | ||
--- | ||
|
||
* **base64.length(string: `string`): `number`**<br /> | ||
Calculates the byte length of a base64 encoded string. | ||
|
||
* **base64.encode(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br /> | ||
Encodes a buffer to a base64 encoded string. | ||
|
||
* **base64.decode(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br /> | ||
Decodes a base64 encoded string to a buffer. | ||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@protobufjs/base64", | ||
"description": "A minimal base64 implementation for number arrays.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dcodeIO/protobuf.js.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
@protobufjs/codegen | ||
=================== | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/codegen.svg)](https://www.npmjs.com/package/@protobufjs/codegen) | ||
|
||
A closure for generating functions programmatically. | ||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) | ||
API | ||
--- | ||
|
||
* **codegen(...params: `string`): `function(format: string, ...args: string): self`**<br /> | ||
Begins generating a function programmatically. | ||
|
||
* **codegen#str([name: `string`]): `string`**<br /> | ||
Stringifies the so far generated function source. | ||
|
||
* **codegen#eof([name?: `string`], [scope: `Object`]): `function`**<br /> | ||
Ends generation and builds the function whilst applying a scope. | ||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@protobufjs/codegen", | ||
"description": "A closure for generating functions programmatically.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dcodeIO/protobuf.js.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
@protobufjs/eventemitter | ||
======================== | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/eventemitter.svg)](https://www.npmjs.com/package/@protobufjs/eventemitter) | ||
|
||
A minimal event emitter. | ||
|
||
API | ||
--- | ||
|
||
* **new EventEmitter()**<br /> | ||
Constructs a new event emitter instance. | ||
|
||
* **EventEmitter#on(evt: `string`, fn: `function`, [ctx: `Object`]): `EventEmitter`**<br /> | ||
Registers an event listener. | ||
|
||
* **EventEmitter#off([evt: `string`], [fn: `function`]): `EventEmitter`**<br /> | ||
Removes an event listener or any matching listeners if arguments are omitted. | ||
|
||
* **EventEmitter#emit(evt: `string`, ...args: `*`): `EventEmitter`**<br /> | ||
Emits an event by calling its listeners with the specified arguments. | ||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@protobufjs/eventemitter", | ||
"description": "A minimal event emitter.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dcodeIO/protobuf.js.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
@protobufjs/pool | ||
================ | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/pool.svg)](https://www.npmjs.com/package/@protobufjs/pool) | ||
|
||
A general purpose buffer pool. | ||
|
||
API | ||
--- | ||
|
||
* **pool(alloc: `function(size: number): Uint8Array`, slice: `function(this: Uint8Array, start: number, end: number): Uint8Array`, [size=8192: `number`]): `function(size: number): Uint8Array`**<br /> | ||
Creates a pooled allocator. | ||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@protobufjs/pool", | ||
"description": "A general purpose buffer pool.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dcodeIO/protobuf.js.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
@protobufjs/utf8 | ||
================ | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/utf8.svg)](https://www.npmjs.com/package/@protobufjs/utf8) | ||
|
||
A minimal UTF8 implementation for number arrays. | ||
|
||
API | ||
--- | ||
|
||
* **utf8.length(string: `string`): `number`**<br /> | ||
Calculates the UTF8 byte length of a string. | ||
|
||
* **utf8.read(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br /> | ||
Reads UTF8 bytes as a string. | ||
|
||
* **utf8.write(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br /> | ||
Writes a string as UTF8 bytes. | ||
|
||
|
||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@protobufjs/utf8", | ||
"description": "A minimal UTF8 implementation for number arrays.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <[email protected]>", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dcodeIO/protobuf.js.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters