{"id":55803,"library":"protostuff-core","title":"Protostuff Core","description":"Protobuf serialization library for mutable messages.","status":"active","version":"1.8.0","language":"java","source_language":null,"source_url":"https://github.com/protostuff/protostuff","tags":["protobuf","serialization","mutable"],"install":[{"cmd":"<dependency>\n  <groupId>io.protostuff</groupId>\n  <artifactId>protostuff-core</artifactId>\n  <version>1.8.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.protostuff:protostuff-core:1.8.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"ProtobufIOUtil","correct":"io.protostuff.ProtobufIOUtil"}],"quickstart":{"code":"import io.protostuff.ProtobufIOUtil;\nimport io.protostuff.Schema;\nimport io.protostuff.runtime.RuntimeSchema;\n\npublic class Example {\n    public static void main(String[] args) {\n        Schema<MyMessage> schema = RuntimeSchema.getSchema(MyMessage.class);\n        MyMessage msg = new MyMessage();\n        byte[] bytes = ProtobufIOUtil.toByteArray(msg, schema, schema.newBuffer());\n        System.out.println(bytes.length);\n    }\n}","lang":"java","description":"Serializes a message to protobuf bytes."},"warnings":[{"fix":"Use separate instances per thread or synchronize access.","message":"Protostuff uses mutable messages; ensure thread safety.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'core':2 'librari':5 'messag':8 'mutabl':7,11 'protobuf':3,9 'protostuff':1 'serial':4,10","created_at":"2026-06-15T10:08:19.815660+00:00","updated_at":"2026-06-15T10:08:19.815660+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://protostuff.github.io","github":"https://github.com/protostuff/protostuff","docs":"https://appdoc.app/artifact/io.protostuff/protostuff-core/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}