Skip to content

Commit

Permalink
Release 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
devjeonghwan committed Aug 23, 2023
1 parent 6f19e26 commit f203393
Show file tree
Hide file tree
Showing 23 changed files with 201 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__com_esotericsoftware_kryo_5_0_0_RC1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__com_esotericsoftware_minlog_1_3_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__com_esotericsoftware_reflectasm_1_11_7.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__com_google_code_gson_gson_2_8_9.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__org_apiguardian_apiguardian_api_1_1_2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__org_jetbrains_annotations_22_0_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__org_objenesis_objenesis_2_6.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/libraries/Gradle__org_opentest4j_opentest4j_1_2_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules/opack.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules/opack.test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/opack.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Gradle:

```gradle
dependencies {
implementation 'com.realtimetech:opack:0.0.9'
implementation 'com.realtimetech:opack:0.0.12'
}
```

Expand All @@ -58,7 +58,7 @@ Maven:
<dependency>
<groupId>com.realtimetech</groupId>
<artifactId>opack</artifactId>
<version>0.0.9</version>
<version>0.0.12</version>
</dependency>
```

Expand Down Expand Up @@ -116,13 +116,13 @@ public class Usage {

.create();

OpackValue opackValue = /* See Serialize Usage */;
OpackValue opackValue;

// Encode Basic
String json = jsonCodec.encode(opackValue);

// Encode with Java IO Writer
Writer writer = /* Java IO Writer */;
Writer writer;
jsonCodec.encode(writer, opackValue);

// Decode Basic
Expand All @@ -144,13 +144,13 @@ public class Usage {

.create();

OpackValue opackValue = /* See Serialize Usage */;
OpackValue opackValue;

// Encode Basic
byte[] bytes = denseCodec.encode(opackValue);

// Encode with Java IO OutputStream
OutputStream outputStream = /* Java IO OutputStream */;
OutputStream outputStream;
denseCodec.encode(OutputStreamWriter.of(outputStream), opackValue);

// Encode with ByteArrayWriter
Expand All @@ -162,7 +162,7 @@ public class Usage {
OpackValue decodedOpackValue = denseCodec.decode(bytes);

// Decode with Java IO InputStream
InputStream inputStream = /* Java IO InputStream */;
InputStream inputStream;
OpackValue decodedOpackValue = denseCodec.decode(InputStreamReader.of(inputStream));

// Decode with ByteArrayReader
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {

group 'com.realtimetech'
archivesBaseName = "opack"
version = "0.0.11"
version = "0.0.12"

compileJava.options.encoding = 'UTF-8'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class InputStreamReader implements Reader {
* Create InputStreamReader
*
* @param inputStream the input stream
* @return the input stream reader
*/
public static @NotNull InputStreamReader of(@NotNull InputStream inputStream) {
return new InputStreamReader(inputStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class OutputStreamWriter implements Writer {
* Create OutputStreamWriter
*
* @param outputStream the output stream
* @return the output stream writer
*/
public static @NotNull OutputStreamWriter of(@NotNull OutputStream outputStream) {
return new OutputStreamWriter(outputStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public T pop() {

/**
* Remove amount elements.
*
* @param amount the amount to remove elements
*/
public void remove(int amount) {
if (this.currentIndex <= amount)
Expand Down

0 comments on commit f203393

Please sign in to comment.