MCPcopy Create free account
hub / github.com/cconlon/kerberos-java-gssapi / appendBytes

Method appendBytes

src/java/edu/mit/jgss/DerHeader.java:58–74  ·  view source on GitHub ↗
(byte[] append)

Source from the content-addressed store, hash-verified

56 }
57
58 public void appendBytes(byte[] append) {
59
60 if (headerBytes == null) {
61 headerBytes = new byte[append.length];
62 System.arraycopy(append, 0, headerBytes, 0, append.length);
63 } else {
64 /* merge into tmp array */
65 byte[] tmp = new byte[headerBytes.length + append.length];
66 System.arraycopy(headerBytes, 0, tmp, 0, headerBytes.length);
67 System.arraycopy(append, 0, tmp, headerBytes.length, append.length);
68
69 /* copy back into object array */
70 headerBytes = new byte[headerBytes.length + append.length];
71 System.arraycopy(tmp, 0, headerBytes, 0, tmp.length);
72 }
73
74 }
75}
76
77

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected