MCPcopy Create free account
hub / github.com/ReadyTalk/avian / addFourBytes

Method addFourBytes

classpath/java/util/zip/ZipOutputStream.java:234–239  ·  view source on GitHub ↗
(int bytes, int offset, byte[] buffer)

Source from the content-addressed store, hash-verified

232 }
233
234 private void addFourBytes(int bytes, int offset, byte[] buffer) throws IOException {
235 buffer[offset] = (byte) (bytes & 0xff);
236 buffer[offset + 1] = (byte) ((bytes >> 8) & 0xff);
237 buffer[offset + 2] = (byte) ((bytes >> 16) & 0xff);
238 buffer[offset + 3] = (byte) ((bytes >> 24) & 0xff);
239 }
240
241 private int writeUTF8(String text) throws IOException {
242 byte[] bytes = text.getBytes("UTF-8");

Callers 4

writeLocalHeaderMethod · 0.95
writeDataDescriptorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected