(bs []byte)
| 375 | } |
| 376 | |
| 377 | func (e *msgpackEncDriver) EncodeStringBytesRaw(bs []byte) { |
| 378 | if bs == nil { |
| 379 | e.EncodeNil() |
| 380 | return |
| 381 | } |
| 382 | if e.h.WriteExt { |
| 383 | e.writeContainerLen(msgpackContainerBin, len(bs)) |
| 384 | } else { |
| 385 | e.writeContainerLen(msgpackContainerRawLegacy, len(bs)) |
| 386 | } |
| 387 | if len(bs) > 0 { |
| 388 | e.e.encWr.writeb(bs) |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | func (e *msgpackEncDriver) writeContainerLen(ct msgpackContainerType, l int) { |
| 393 | if ct.fixCutoff > 0 && l < int(ct.fixCutoff) { |
no test coverage detected