Introduction
WireAnno is a Java annotation processing framework designed for wire protocol code generation and validation.
Installation
Add the WireAnno API to your project dependencies:
dependencies {
implementation 'com.wireanno:wireanno-api:1.0.0'
annotationProcessor 'com.wireanno:wireanno-processor:1.0.0'
}
Basic Usage
Create a wire protocol message using annotations:
@Message
public class MyMessage {
@UInt16(fieldNum=1)
public int id;
@FixedAsciiS(fieldNum=2, lenght=12)
public String name;
}
Next Steps
- Check out the GitHub repository
- Read the full documentation
- Explore examples