GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    pistolero :thispersondoesnotexist: (p@freespeechextremist.com)'s status on Saturday, 28-Oct-2023 22:11:17 JSTpistolero :thispersondoesnotexist:pistolero :thispersondoesnotexist:
    in reply to
    • Your New Marijuana Injecting Waifu :weed:
    • 恵真 :hypercat:
    • The MILF Messiah
    • 7666
    • parallel unstable lean :OwOid:
    • ✙ dcc :pedomustdie: :phear_slackware:
    • pwm
    • Maholmire
    @lunarised @7666 @Maholmire @dcc @emma @getimiskon @pwm @sjw

    > Can you give me a single line of revolver source code so I can tell people to fuck off?

    func SerializeBlockMeta(b *FullBlock) []byte {
    bf := make([]byte, 2+1+1+8, 2+1+1+8+32)
    binary.BigEndian.PutUint16(bf[0:2], 0)
    bf[2] = byte(b.Type)
    bf[3] = byte(b.Compression)
    binary.BigEndian.PutUint64(bf[4:12], b.Sz)
    bf = append(bf, b.Hash...)
    return bf
    }
    func DeserializeBlockMeta(b []byte) (*BlockMeta, string) {
    m := &BlockMeta{}
    // VFlags always zero
    m.Type = BlockType(b[2])
    m.Compression = CompressionType(b[3])
    m.Sz = binary.BigEndian.Uint64(b[4:12])
    return m, hex.EncodeToString(b[12:12+32])
    }
    In conversationSaturday, 28-Oct-2023 22:11:17 JST from freespeechextremist.compermalink

    Attachments



  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.