MCPcopy
hub / github.com/qax-os/excelize / writeBytes

Method writeBytes

crypt.go:648–657  ·  view source on GitHub ↗

writeBytes write bytes in the stream by a given value with an offset.

(value []byte)

Source from the content-addressed store, hash-verified

646
647// writeBytes write bytes in the stream by a given value with an offset.
648func (c *cfb) writeBytes(value []byte) {
649 pos := c.position
650 for i := 0; i < len(value); i++ {
651 for j := len(c.stream); j <= i+pos; j++ {
652 c.stream = append(c.stream, 0)
653 }
654 c.stream[i+pos] = value[i]
655 }
656 c.position = pos + len(value)
657}
658
659// writeUint16 write an uint16 data type bytes in the stream by a given value
660// with an offset.

Callers 7

standardKeyEncryptionMethod · 0.95
writeUint16Method · 0.95
writeUint32Method · 0.95
writeUint64Method · 0.95
writeStringsMethod · 0.95
writeDirectoryEntryMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected