SerializeCDR serializes the message to CDR format
()
| 30 | |
| 31 | // SerializeCDR serializes the message to CDR format |
| 32 | func (m *String) SerializeCDR() ([]byte, error) { |
| 33 | // CDR serialization is performed directly in Go |
| 34 | // The packToRaw method produces CDR-compatible little-endian bytes |
| 35 | return m.packToRaw(), nil |
| 36 | } |
| 37 | |
| 38 | func (m *String) packToRaw() []byte { |
| 39 | buf := make([]byte, 0, 256) |