parent
840cacfd2a
commit
cffe60bf43
8 changed files with 192 additions and 87 deletions
|
|
@ -16,8 +16,8 @@ import com.google.protobuf.Message
|
|||
|
||||
class ProtobufSerializer extends Serializer {
|
||||
val ARRAY_OF_BYTE_ARRAY = Array[Class[_]](classOf[Array[Byte]])
|
||||
|
||||
def identifier = 2: Byte
|
||||
def includeManifest: Boolean = false
|
||||
def identifier = 2: Serializer.Identifier
|
||||
|
||||
def toBinary(obj: AnyRef): Array[Byte] = {
|
||||
if (!obj.isInstanceOf[Message]) throw new IllegalArgumentException(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue