Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.3.20'
ext.kotlin_version = '1.4.20'
ext.artifactoryUsername = System.getenv("artifactory_user")
ext.artifactoryPassword = System.getenv("artifactory_password")
ext.artifactoryUrl = System.getenv("artifactory_url")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3-all.zip
3 changes: 1 addition & 2 deletions runtime-lite/src/main/kotlin/Message.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package jp.co.panpanini

import com.google.protobuf.CodedInputStream
import java.io.InputStream
import java.io.Serializable

interface Message<T : Message<T>> : Serializable {
fun protoUnmarshal(u: Unmarshaller): T
fun protoUnmarshal(arr: ByteArray) = protoUnmarshal(Unmarshaller.fromByteArray(arr))
fun protoUnmarshal(inputStream: InputStream) = protoUnmarshal(Unmarshaller(CodedInputStream.newInstance(inputStream)))
fun protoUnmarshal(inputStream: InputStream) = protoUnmarshal(Unmarshaller(Reader(inputStream.readBytes())))

operator fun plus(other: T?): T
val protoSize: Int
Expand Down
Loading